@Test
public void testAccessNotFoundDomain() {

    Principal principal = SimplePrincipal.create("user", "user1", "v=U1;d=user;n=user1;s=signature");
    try {
        zms.access("read", "domain_not_found:entity", principal, null);
        fail();
    } catch (com.yahoo.athenz.common.server.rest.ResourceException ex) {
        assertEquals(ex.getCode(), 404);
    }
}