@Test
public void testGetRolesInvalidDomain() {

    final String domainName = "getrolesinvaliddomain";
    
    try {
        zms.getRoles(mockDomRsrcCtx, domainName, null);
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 404);
    }
}