@Test
public void testConvertShouldThrowIllegalArgumentExceptionIfParameterTypesIsEmpty() {

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