@Test()
public void testCheckKeyUniquenessWhenEmailValueIsNotUnique(){

    try{
        Response response=new Response();
        List<Map<String, Object>> userMapList =new ArrayList<>();
        Map<String,Object>map=new HashMap<>();
        map.put(JsonKey.NAME,"NAME");
        userMapList.add(map);
        response.put(JsonKey.RESPONSE,userMapList);
        when(cassandraOperation.getRecordsByIndexedProperty(userDb.getKeySpace(), userDb.getTableName(), "email", "valueNotUnique")).thenReturn(response);
        userService.checkKeyUniqueness("email","valueNotUnique",false);
    }catch (Exception e) {
        Assert.assertEquals("Email already exists.",e.getMessage());
    }
}