public class LoginUrlEntryPointTest {
public void testDetectsMissingLoginFormUrl() throws Exception {
LoginUrlEntryPoint ep = new LoginUrlEntryPoint();
try {
ep.afterPropertiesSet();
fail("Should have thrown IllegalArgumentException");
} catch (IllegalArgumentException expected) {
assertEquals("loginFormUrl must be specified", expected.getMessage());
}
}