@Test
public void testGetTenantResourceGroupRoles() {

    String domain = "testGetTenantResourceGroupRoles";
    TopLevelDomain dom = createTopLevelDomainObject(
            domain, "Test Domain1", "testOrg", adminUser);
    dom.setAuditEnabled(true);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom);
    List<TenantRoleAction> roleActions = new ArrayList<>();
    for (Struct.Field f : TABLE_PROVIDER_ROLE_ACTIONS) {
        roleActions.add(new TenantRoleAction().setRole(f.name()).setAction(
                (String) f.value()));
    }
    String serviceName  = "storage";
    String tenantDomain = "tenantTestDeleteTenantRoles";
    String resourceGroup = "Group1";
    TenantResourceGroupRoles tenantRoles = new TenantResourceGroupRoles().setDomain(domain)
            .setService(serviceName).setTenant(tenantDomain)
            .setRoles(roleActions).setResourceGroup(resourceGroup);
    zms.putTenantResourceGroupRoles(mockDomRsrcCtx, domain, serviceName, tenantDomain, resourceGroup,
            auditRef, tenantRoles);
    TenantResourceGroupRoles tRoles = zms.getTenantResourceGroupRoles(mockDomRsrcCtx, domain, serviceName,
            tenantDomain, resourceGroup);
    assertNotNull(tRoles);
    assertEquals(domain.toLowerCase(), tRoles.getDomain());
    assertEquals(serviceName.toLowerCase(), tRoles.getService());
    assertEquals(tenantDomain.toLowerCase(), tRoles.getTenant());
    assertEquals(resourceGroup.toLowerCase(), tRoles.getResourceGroup());
    assertEquals(TABLE_PROVIDER_ROLE_ACTIONS.size(), tRoles.getRoles().size());
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domain, auditRef);
}