@Test
    public void validTests() {
        new NewLineExpressionsDataSource().validTests().forEach(line -> {
            try {
                JmespathExpression expression = JmespathExpression.parse(line);
                for (ExpressionProblem problem : expression.lint().getProblems()) {
                    if (problem.severity == ExpressionProblem.Severity.ERROR) {
                        Assertions.fail("Did not expect an ERROR for line: " + line + "\n" + problem);
                    }
                }
            } catch (JmespathException e) {
                Assertions.fail("Error loading line:\n" + line + "\n" + e.getMessage(), e);
            }
        });
    }
This test loads invalid and valid files, to ensure that they
are either able to be parsed or not able to be parsed.
smithy-jmespath/src/test/java/software/amazon/smithy/jmespath/RunnerTest.java