@Test
public void mergeObjectTest() throws JsonProcessingException {

    MergedObject mergedObject = new MergedObject();
    mergedObject.setId("an id");
    mergedObject.setText("text");
    mergedObject.setNumber(4);
    MergeRequest mergeRequest = new MergeRequest();
    mergeRequest.setText("another text");
    mergeRequest.setNumber("5");
    ReflectionUtil.mergeObject(mergeRequest, mergedObject);
    Assert.assertEquals(5, mergedObject.getNumber().intValue());
    Assert.assertEquals("another text", mergedObject.getText());
    Assert.assertEquals("an id", mergedObject.getId());
}