@Test
    public void invalidTests() {
        new NewLineExpressionsDataSource().invalidTests().forEach(line -> {
            try {
                JmespathExpression.parse(line);
                Assertions.fail("Expected line to fail: " + line);
            } catch (JmespathException e) {
                // pass
            }
        });
    }
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