TypeConverterProvider implements ITypeConverterProvider { public <TTargetType> TypeConverterProvider override(ITypeConverter<TTargetType> typeConverter) { typeConverters.put(typeConverter.getTargetType(), typeConverter); return this; } TypeConverterProvider(); TypeConverterProvider add(ITypeConverter<TTargetType> typeConverter); ITypeConverter<TTargetType> resolve(Type targetType); TypeConverterProvider override(ITypeConverter<TTargetType> typeConverter); @Override String toString();  }
@Test public void testOverride() throws Exception { JUnitUtils.assertDoesNotThrow(() -> provider.override(new IntegerConverter())); }