class SingleArgConverter extends AbstractObjectConverter<Object> {

    @Override
    public Object[] convert(Object data, boolean isVarargs, Class<?>[] parameterTypes) {
        checkArgument(parameterTypes.length >= 1,
                "Object[] dataprovider must at least have a single argument for the dataprovider but found no parameters");
        checkArgument(!isVarargs, "Object[] dataprovider does not support varargs");

        Object[] result = new Object[] { data };
        checkIfArgumentsMatchParameterTypes(result, parameterTypes);
        return result;
    }

}