@Test
public void callToConvertAddsMoreSupportedFormatsToTheContext() throws Exception {

    ConversionContext context = mock(ConversionContext.class);
    BigDecimalConverter converter = new BigDecimalConverter();
    BigDecimal value = converter.convert("", context);
    assertThat(value).isNull();
    verify(context).addSupportedFormats(BigDecimalConverter.class, "<bigDecimal> -> new BigDecimal(String)");
}