@Test
public void testConvertShouldCreateVarargsArrayForOneLastVarargsArguments() {

    // Given:
    String data = "a,2,1.0,null";
    Class<?>[] parameterTypes = new Class<?>[] { char.class, byte.class, Double[].class };
    when(context.getSplitBy()).thenReturn(",");
    when(context.isConvertNulls()).thenReturn(true);
    // When:
    Object[] result = underTest.convert(data, true, parameterTypes, context, 93);
    // Then:
    assertThat(result).containsExactly('a', (byte) 2, new Double[] { 1.0, null });
}