@Test
public void callToConvertAddsMoreSupportedFormatsToTheContext() throws Exception {

    ConversionContext context = new ConversionContext.Builder(TypeLiteral.of(Number.class)).build();
    NumberConverter converter = new NumberConverter();
    converter.convert("", context);
    assertThat(context.getSupportedFormats()).contains("<double>, <long> (NumberConverter)",
            "POSITIVE_INFINITY (NumberConverter)", "NEGATIVE_INFINITY (NumberConverter)", "NAN (NumberConverter)");
}