MapConverter implements Converter { public boolean canConvert(@SuppressWarnings("rawtypes") Class type) { return Map.class.isAssignableFrom(type); }  boolean canConvert(@SuppressWarnings("rawtypes") Class type); void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context); Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context);  }
@Test public void testCanConvert() { assertTrue(this.mapConverter.canConvert(Map.class)); assertTrue(this.mapConverter.canConvert(SortedMap.class)); assertTrue(this.mapConverter.canConvert(HashMap.class)); assertTrue(this.mapConverter.canConvert(TreeMap.class)); assertFalse(this.mapConverter.canConvert(String.class)); }