ssoManager.addAssociation(addedUser, anotherTestgroup);
Collection<JetspeedPrincipal> fetchedPrincipals = ssoManager.getPortalPrincipals(addedUser);
assertEquals(4,fetchedPrincipals.size());
SSOUserImpl nonExistingUser = new SSOUserImpl();
nonExistingUser.setName("fake");
nonExistingUser.setDomainId(addedUser.getDomainId());
fetchedPrincipals = ssoManager.getPortalPrincipals(nonExistingUser);
assertEquals(0,fetchedPrincipals.size());
}