@Test
public void testGetPolicyListThrowException() {

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