@Test public void testGetContainedAttributes() { Principal principal = identityService.getPrincipal("p1"); EntityDefault entity = identityService.getEntityDefault(principal.getEntityId()); assertNotNull("Entity Must not be null", entity); EntityTypeContactInfoDefault eet = entity.getEntityType("PERSON"); assertNotNull("PERSON EntityTypeData must not be null", eet); assertNotNull( "EntityEntityType's default email address must not be null", eet.getDefaultEmailAddress()); assertEquals("*****@*****.**", eet.getDefaultEmailAddress().getEmailAddressUnmasked()); }