@Override
    public void setParameters(Collection<CompoundVariable> parameters) throws InvalidVariableException {
        checkParameterCount(parameters, MIN_PARAMETER_COUNT, MAX_PARAMETER_COUNT);
        values = parameters.toArray(new CompoundVariable[parameters.size()]);
    }
@Test
    void testDateConvertError() throws Exception {
        params.add(new CompoundVariable("2017-01-02"));
        params.add(new CompoundVariable("yyyy-MM-dd"));
        assertThrows(
                InvalidVariableException.class,
                () -> dateConvert.setParameters(params));
    }