ConfigurationConverter implements Converter { @Override public boolean canConvert(@SuppressWarnings("rawtypes") Class type) { return DefaultConfiguration.class.isAssignableFrom(type); } ConfigurationConverter(Metadata metadata); @Override boolean canConvert(@SuppressWarnings("rawtypes") Class type); @Override void marshal(Object source, HierarchicalStreamWriter writer, MarshallingContext context); @Override Object unmarshal(HierarchicalStreamReader reader, UnmarshallingContext context);  }
@Test public void testCanConvert() { assertTrue(this.converter.canConvert(DefaultConfiguration.class)); assertFalse(this.converter.canConvert(Configuration.class)); }