@Test
public void testConvertShouldThrowIllegalStateExceptionIfConverterContextIsNullForString() {

    // Given:
    String[] data = { "" };
    Class<?>[] parameterTypes = new Class<?>[] { Object.class };
    expectedException.expect(IllegalStateException.class);
    expectedException.expectMessage("'context' must not be null for 'String[]' data");
    // When:
    underTest.convert(data, false, parameterTypes, null);
    // Then: expect exception
}