TypeConverterProvider implements ITypeConverterProvider { @Override public String toString() { String typeConvertersString = typeConverters.entrySet() .stream() .map(e -> e.getValue().toString()) .collect(Collectors.joining(", ")); return "TypeConverterProvider{" + "typeConverters=[" + typeConvertersString + "]" + '}'; } TypeConverterProvider(); TypeConverterProvider add(ITypeConverter<TTargetType> typeConverter); ITypeConverter<TTargetType> resolve(Type targetType); TypeConverterProvider override(ITypeConverter<TTargetType> typeConverter); @Override String toString();  }
@Test public void testToString() throws Exception { JUnitUtils.assertDoesNotThrow(() -> provider.toString()); }