@Test
public void testConvertShouldThrowExceptionIfVarargsAndNumberOfArgumentsIsTwoLessComparedToNumberOfParameterTypes() {

    // Given:
    String data = "";
    Class<?>[] parameterTypes = new Class<?>[] { long.class, boolean.class, int[].class };
    when(context.getSplitBy()).thenReturn(",");
    expectedException.expect(IllegalArgumentException.class);
    expectedException
            .expectMessage("Varargs test method has 3 parameters but got only 1 arguments in row 3");
    // When:
    underTest.convert(data, true, parameterTypes, context, 3);
    // Then: expect exception
}