@Test
public void testDeleteRole() {

    TopLevelDomain dom1 = createTopLevelDomainObject("DelRoleDom1",
            "Test Domain1", "testOrg", adminUser);
    zms.postTopLevelDomain(mockDomRsrcCtx, auditRef, dom1);
    Role role1 = createRoleObject("DelRoleDom1", "Role1", null, "user.joe",
            "user.jane");
    zms.putRole(mockDomRsrcCtx, "DelRoleDom1", "Role1", auditRef, role1);
    Role role2 = createRoleObject("DelRoleDom1", "Role2", null, "user.joe",
            "user.jane");
    zms.putRole(mockDomRsrcCtx, "DelRoleDom1", "Role2", auditRef, role2);
    RoleList roleList = zms.getRoleList(mockDomRsrcCtx, "DelRoleDom1", null, null);
    assertNotNull(roleList);
    // our role count is +1 because of the admin role
    assertEquals(roleList.getNames().size(), 3);
    zms.deleteRole(mockDomRsrcCtx,"DelRoleDom1", "Role1", auditRef);
    roleList = zms.getRoleList(mockDomRsrcCtx, "DelRoleDom1", null, null);
    assertNotNull(roleList);
    // our role count is +1 because of the admin role
    assertEquals(roleList.getNames().size(), 2);
    assertFalse(roleList.getNames().contains("Role1".toLowerCase()));
    assertTrue(roleList.getNames().contains("Role2".toLowerCase()));
    zms.deleteTopLevelDomain(mockDomRsrcCtx,"DelRoleDom1", auditRef);
}