@Test
public void testCreateRestrictedEntity() {

    JsonNode result = JsonUtils.createRestrictedEntity(dummyObj, "nestedDummy");
    Assert.assertEquals(1, result.size());
    Assert.assertTrue(result.has("nestedDummy"));
    Assert.assertEquals(2, result.get("nestedDummy").size());
}