@Test
public void testConvertShouldThrowNullPointerExceptionIfParameterTypesIsNull() {

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