@Test
void testLogin() throws Exception {

    DefaultSecurityManager securityManager = new DefaultSecurityManager();
    DefaultWebApplication webApp = new DefaultWebApplication();
    webApp.setSecurityManager(securityManager);
    TestWebApplicationRequest request = new TestWebApplicationRequest();
    request.setWebApplication(webApp);
    try {
        request.login("admin", "password");
    } catch (ServletException exception) {
    }
}