@Test
public void testConvertShouldCreateVarargsArrayForOneOnlyVarargsArguments() {

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