@Test
public void testConvertShouldThrowExceptionIfNumberOfArgumentsIsGreaterThanNumberOfParameterTypesOnNonVarargMethod() {

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