### Question:
ChainedTypeConverter implements TypeConverter { @Override public Object fromString(Type type, String value) { return converterFor(type).fromString(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 shouldThrowExceptionWhenFromStringAndTypeIsNull() { assertThatThrownBy(() -> typeConverter.fromString(null, "123")) .isExactlyInstanceOf(NullPointerException.class); }
@Test void shouldThrowExceptionWhenConvertingFromStringAndUnsupportedType() { assertThatThrownBy(() -> typeConverter.fromString(Long.class, "123")) .isExactlyInstanceOf(IllegalArgumentException.class); }