@Test
public void testConvertShouldCreateVarargsArrayForOneLastVarargsArguments() {

    // Given:
    Object[] data = new Object[] { 'a', (byte) 2, 1.0 };
    Class<?>[] parameterTypes = new Class<?>[] { char.class, byte.class, double[].class };
    // When:
    Object[] result = underTest.convert(data, true, parameterTypes);
    // Then:
    assertThat(result).containsExactly('a', (byte) 2, new double[] { 1.0 });
}