@Test public void testMapToMap() throws Exception { Map<String, Object> nestedMap = new LinkedHashMap<>(); nestedMap.put("field1", "value3"); nestedMap.put("field2", "value4"); Map<String, Object> testMap = new LinkedHashMap<>(); testMap.put("field1", "value1"); testMap.put("field2", "value2"); testMap.put("nestedField", nestedMap); assertEquals(testMap, converter.convert(Map.class, testMap), "Map converter correctly converted Map to Map"); }
@Override public <T> T convert(Class<T> cls, Object value) { return MAPPER.convertValue(value, cls); }
FromMapConverter implements Converter { @Override public <T> T convert(Class<T> cls, Object value) { return MAPPER.convertValue(value, cls); } }
FromMapConverter implements Converter { @Override public <T> T convert(Class<T> cls, Object value) { return MAPPER.convertValue(value, cls); }  }
FromMapConverter implements Converter { @Override public <T> T convert(Class<T> cls, Object value) { return MAPPER.convertValue(value, cls); }  @Override T convert(Class<T> cls, Object value); }
FromMapConverter implements Converter { @Override public <T> T convert(Class<T> cls, Object value) { return MAPPER.convertValue(value, cls); }  @Override T convert(Class<T> cls, Object value);  }