### Question:
ChainedTypeConverter implements TypeConverter { @Override public String toString(Type type, Object value) { return converterFor(type).toString(type, value); } ChainedTypeConverter(List<TypeConverter> converters); @Override boolean isApplicable(Type type); @Override Object fromString(Type type, String value); @Override String toString(Type type, Object value);  }### Answer:
@Test void shouldThrowExceptionWhenToStringAndTypeIsNull() { assertThatThrownBy(() -> typeConverter.toString(null, 123L)) .isExactlyInstanceOf(NullPointerException.class); }
@Test void shouldThrowExceptionWhenConvertingToStringAndUnsupportedType() { assertThatThrownBy(() -> typeConverter.toString(Long.class, 123L)) .isExactlyInstanceOf(IllegalArgumentException.class); }