GlobalConfig { public static ObjectConverter getObjectConverter() { return objectConverter; }  static ObjectConverter getObjectConverter(); static ObjectPropertyOperator getPropertyOperator(); static void setPropertyOperator(ObjectPropertyOperator propertyOperator); static void setObjectConverter(ObjectConverter objectConverter);  }
@Test public void testConvert() { Map<String, Object> map = new HashMap<>(); TestEntity entity = new TestEntity(); entity.setName("1234"); GlobalConfig.getObjectConverter().convert(entity, () -> map); Assert.assertEquals(map.get("name"), "1234"); TestEntity newEntity = GlobalConfig.getObjectConverter().convert(map, TestEntity.class); Assert.assertEquals(newEntity.getName(), "1234"); }