@Test
public void testExecutePutRoleInvalidDomain() {

    TopLevelDomain dom1 = createTopLevelDomainObject("ExecutePutRoleInvalidDom1",
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    Role role1 = createRoleObject("ExecutePutRoleInvalidDom1", "Role1", null,
            "user.joe", "user.jane");
    
    try {
        zms.dbService.executePutRole(mockDomRsrcCtx, "ExecutePutRoleInvalidDom2",
                "Role1", role1, auditRef, "putRole");
        fail();
    } catch (ResourceException ex) {
        assertEquals(ex.getCode(), 404);
    }
    zms.deleteTopLevelDomain(mockDomRsrcCtx, "ExecutePutRoleInvalidDom1", auditRef);
}