@Test
public void testGetDomainThrowException() {

    try {
        zms.getDomain(mockDomRsrcCtx, "wrongDomain");
        fail("notfounderror not thrown.");
    } catch (ResourceException e) {
        assertEquals(e.getCode(), 404);
    }
}