s2.logout();
assertFalse(subject.getPrincipals().isEmpty());
assertFalse(subject.getPublicCredentials().isEmpty());
}
Session s3 = sImpl.createSession(null);
try {
assertFalse(s3 == sImpl);
assertFalse(subject == ((SessionImpl) s3).getSubject());
assertEquals(subject, ((SessionImpl) s3).getSubject());
assertEquals(((RepositoryImpl) sImpl.getRepository()).getConfig().getDefaultWorkspaceName(), s3.getWorkspace().getName());