@Test
public void testGetPrincipalRoles() {

    createDomain("domain1");
    createDomain("domain2");
    createDomain("domain3");
    String principal = "user.johndoe";
    insertRecordsForGetPrincipalRolesTest(principal);
    DomainRoleMember domainRoleMember = zms.getPrincipalRoles(mockDomRsrcCtx, principal, null);
    verifyGetPrincipalRoles(principal, domainRoleMember, true);
    domainRoleMember = zms.getPrincipalRoles(mockDomRsrcCtx, principal, "domain1");
    verifyGetPrincipalRoles(principal, domainRoleMember, false);
    zms.deleteTopLevelDomain(mockDomRsrcCtx,"domain1", auditRef);
    zms.deleteTopLevelDomain(mockDomRsrcCtx,"domain2", auditRef);
    zms.deleteTopLevelDomain(mockDomRsrcCtx,"domain3", auditRef);
}