@Test
public void testConvertShouldThrowIllegalArgumentExceptionIfVarargsIsTrue() {

    // Given:
    Object data = 3.0;
    Class<?>[] parameterTypes = new Class<?>[] { double.class };
    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage("Object[] dataprovider does not support varargs");
    // When:
    underTest.convert(data, true, parameterTypes);
    // Then: expect exception
}