private void assertVariableList(final VariableList cv, final String... expectedParams) {
        final List<String> vars = new ArrayList<>();
        String currentVar = null;
        for (String p : expectedParams) {
            if (p.startsWith("f:")) {
                assertThat(Objects.requireNonNull(cv.getState(currentVar)).getFormulaString()).as("Formula for var '" + currentVar + "'").isEqualTo(p.substring(2));
            } else {
                currentVar = p;
                vars.add(p);
            }
        }
        assertThat(cv.asList()).containsExactlyElementsOf(vars);
        assertThat(cv.asSet()).containsExactlyInAnyOrderElementsOf(vars);
    }
expectedParams syntax: pure string = expected var, prefix with f: to assert formula
main/src/test/java/cgeo/geocaching/utils/formulas/VariableListTest.java