@Test
public void testUpdateQuery() {

    UserInfo userInfo = new UserInfo();
    userInfo.setUserLoginId("TestID");
    userInfo.setUserName("Test");
    commonClassDao.save(userInfo);
    commonClassDao.updateQuery("SELECT * FROM userLoginId");
    List<Object> data = commonClassDao.getDataById(UserInfo.class, "userLoginId:userName", "TestID:Test");
    assertTrue(data.size() == 1);
    String query = "DELETE FROM org.onap.policy.rest.jpa.FunctionDefinition";
    commonClassDao.updateQuery(query);
    data = commonClassDao.getDataById(UserInfo.class, "userLoginId:userName", "TestID:Test");
    assertTrue(data.size() == 1);
    commonClassDao.delete(data);
}