.isEmpty());
Set<Object> subjects2 = subject.getPublicCredentials();
assertFalse("Should get at least one public credential", subjects2
.isEmpty());
try {
assertTrue("Should be true", module.logout());
} catch (LoginException e) {
fail("Logout failed");
}
principals = subject.getPrincipals();
assertTrue("Principals should be cleared", principals.isEmpty());