isRolePresent(roles, newRole.toUpperCase()));
assertTrue("old role should not be present",
(false == isRolePresent(roles, role.toUpperCase())));
//4. delete the role and ensure it is deleted from datastore
resp = api.deleteRole(newRole, user);
assertTrue("deletion should be success",
resp.statusCode == Status.SUCCESS);
roles = (List<RoleProp>) api.getAllRoles().object;
assertTrue("role after deletion should not be present",
(false == isRolePresent(roles, newRole.toUpperCase())));