assertEquals("Role names are different", identity.getRole().getRoleName(), restored.getRole().getRoleName());
}
public void testReadIdentityWithRoleAndParent() throws Exception
{
Role parent = new SimpleRole("parent");
Role role = new SimpleRole("testRole", parent);
Identity identity = IdentityFactory.createIdentityWithRole(identityName, role);
assertFalse("File already exists", file.exists());
assertNotNull("Failed to persist", ps.persistIdentity(identity));
assertTrue("File was not created", file.exists());