public WithJsonPath(JsonPath jsonPath, Matcher<T> resultMatcher) {
        this.jsonPath = jsonPath;
        this.resultMatcher = resultMatcher;
    }
@Test
    public void shouldFailOnInvalidJsonPath() {
        assertThrows(InvalidPathException.class, () -> withJsonPath("$[}"));
    }