@Test
public void testExecutePutRole() {

    String domainName = "executeputroledom1";
    String roleName = "role1";
    
    TopLevelDomain dom1 = createTopLevelDomainObject(domainName,
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    Role role1 = createRoleObject(domainName, roleName, null,
            "user.joe", "user.jane");
    zms.dbService.executePutRole(mockDomRsrcCtx, domainName, roleName, role1, auditRef, "putRole");
    Role role3 = zms.getRole(mockDomRsrcCtx, domainName, roleName, false, false, false);
    assertNotNull(role3);
    assertEquals(role3.getName(), domainName + ":role." + roleName);
    assertNull(role3.getTrust());
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}