@Test(expected = ConfigException.class)
public void emulateExceptionWhenGivenContextIsNull() {

    ConversionContext context = Mockito.mock(ConversionContext.class);
    new OptionalConverter().convert("JustATestValueThatIsIgnored", context);
}