}
@Test
public void testShiroWithSomeOtherUser() throws Exception {
WebClient client = new WebClient();
TextPage beforeLogin = client.getPage(url + "features");
assertTrue(beforeLogin.getContent().contains("DISABLED = false"));
assertTrue(beforeLogin.getContent().contains("ENABLED_FOR_ALL = true"));
assertTrue(beforeLogin.getContent().contains("ENABLED_FOR_CK = false"));
TextPage loginPage = client.getPage(url + "login?user=somebody");
assertTrue(loginPage.getContent().contains("SUCCESS"));
TextPage afterLogin = client.getPage(url + "features");
assertTrue(afterLogin.getContent().contains("DISABLED = false"));
assertTrue(afterLogin.getContent().contains("ENABLED_FOR_ALL = true"));
assertTrue(afterLogin.getContent().contains("ENABLED_FOR_CK = false"));
TextPage logoutPage = client.getPage(url + "logout");
assertTrue(logoutPage.getContent().contains("SUCCESS"));
TextPage afterLogout = client.getPage(url + "features");
assertTrue(afterLogout.getContent().contains("DISABLED = false"));
assertTrue(afterLogout.getContent().contains("ENABLED_FOR_ALL = true"));
assertTrue(afterLogout.getContent().contains("ENABLED_FOR_CK = false"));
}