@Test
public void testExecuteDeleteRole() {

    String domainName = "delroledom1";
    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.putRole(mockDomRsrcCtx, domainName, roleName, auditRef, role1);
    RoleList roleList = zms.getRoleList(mockDomRsrcCtx, domainName, null, null);
    assertNotNull(roleList);
    // our role count is +1 because of the admin role
    assertEquals(roleList.getNames().size(), 2);
    zms.dbService.executeDeleteRole(mockDomRsrcCtx, domainName, roleName, auditRef, "deleteRole");
    roleList = zms.getRoleList(mockDomRsrcCtx, domainName, null, null);
    assertNotNull(roleList);
    // our role count is +1 because of the admin role
    assertEquals(roleList.getNames().size(), 1);
    assertFalse(roleList.getNames().contains(roleName));
    assertTrue(roleList.getNames().contains("admin"));
    zms.deleteTopLevelDomain(mockDomRsrcCtx, domainName, auditRef);
}