public void assertJson(String expectedJson, String actualJson) {
        try {
            JSONAssert.assertEquals(expectedJson, actualJson, new WildcardComparator(JSONCompareMode.LENIENT));
        } catch (JSONException e1) {
            throw new RuntimeException(e1);
        }

    }
Asserts that the JSON document matches what we expected.

Note: the input streams should be closed by the caller
@param expectedJson expected
@param actualJson actual
@throws Exception error when parsing json or validating structure
test/common/src/main/java/io/apiman/test/common/json/JsonCompare.java