@Test
public void testGetProviderResourceGroupRolesUnknownDomain() {

    // all invalid input with provider domain, resource and resource group
    // just returns an empty list for role actions but for invalid tenant
    // domain we get 404 exception
    try {
        zms.getProviderResourceGroupRoles(mockDomRsrcCtx, "unknown-domain",
                "test1", "invalid", "hockey");
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 404);
    }
}