@Test
public void testConvertShouldCreateVarargsArrayForMultipleLastVarargsArguments() {

    // Given:
    Object[] data = new Object[] { "foobar", 1l, 2l, 3l };
    Class<?>[] parameterTypes = new Class<?>[] { String.class, long[].class };
    // When:
    Object[] result = underTest.convert(data, true, parameterTypes);
    // Then:
    assertThat(result).containsExactly("foobar", new long[] { 1, 2, 3 });
}