public void assertJson(JsonNode expectedJson, JsonNode actualJson) {
            String expectedS = null;
            String actualS = null;
        try {
            expectedS = jacksonParser.writeValueAsString(expectedJson);
            actualS = jacksonParser.writeValueAsString(actualJson);
            JSONAssert.assertEquals(expectedS, actualS, new WildcardComparator(JSONCompareMode.LENIENT));
        } catch (AssertionError | JsonProcessingException | JSONException e1) {
            System.out.println("Expected: " + expectedS);
            System.out.println("Actual: " + actualS);
            throw new RuntimeException(e1);
        }
    }
Asserts that the JSON document matches what we expected.
@param expectedJson
@param actualJson
test/common/src/main/java/io/apiman/test/common/json/JsonCompare.java