@Test
public void testConvertShouldThrowIllegalArgumentExceptionIfParameterTypesSizeIsZero() {

    // Given:
    Object data = 1;
    Class<?>[] parameterTypes = new Class<?>[] {};
    expectedException.expect(IllegalArgumentException.class);
    expectedException.expectMessage(
            "Object[] dataprovider must at least have a single argument for the dataprovider but found no parameters");
    // When:
    underTest.convert(data, false, parameterTypes);
    // Then: expect exception
}