@Test
public void testConvertShouldCreateEmptyVarargsArrayForLastMissingVarargsArgument() {

    // Given:
    String data = "test";
    Class<?>[] parameterTypes = new Class<?>[] { String.class, int[].class };
    when(context.getSplitBy()).thenReturn(",");
    // When:
    Object[] result = underTest.convert(data, true, parameterTypes, context, 91);
    // Then:
    assertThat(result).containsExactly("test", new int[0]);
}