@Test
public void testGetPoliciesInvalidDomain() {

    String domainName = "get-policies-invalid-domain";
    
    try {
        zms.getPolicies(mockDomRsrcCtx, domainName, Boolean.TRUE);
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 404);
    }
}