@Test
public void testConvertShouldCreateVarargsArrayForOneOnlyVarargsArguments() {

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