class SingleArgConverter extends com.tngtech.junit.dataprovider.convert.SingleArgConverter {

    @Override
    public Object[] convert(Object data, boolean isVarargs, Class<?>[] parameterTypes) {
        checkArgument(parameterTypes.length == 1, "Object[] dataprovider just supports single argument test method but found %d parameters",
                parameterTypes.length);
        return super.convert(data, isVarargs, parameterTypes);
    }

}