JAASAuthenticationService extends GroupAdapterAuthorizationSource implements AuthenticationService { @Override public boolean isLoggedIn() { return userOnThisThread.get() != null; } JAASAuthenticationService(String domain); @Override User login(final String username,
                      final String password); @Override void logout(); @Override User getUser(); @Override boolean isLoggedIn(); static final String DEFAULT_DOMAIN; }
@Test public void testGetAnnonymous() throws Exception { assertFalse( tested.isLoggedIn() ); }