private static final String JSON_STRING_WITH_ARRAY = "{d:{results:[{__metadata:{uri:\"http://localhost:80/Person('1')\",type:Person},id:1}]}}";
private static final String CONSTANT_URI_REGEX_EXPECTED_JSON = "{d:{results:[{__metadata:{uri:X}}]}}";
private void doTest(String jsonPath, String regex, String expectedJSON,
String actualJSON) throws JSONException {
JSONAssert.assertEquals(expectedJSON, actualJSON, new CustomComparator(
JSONCompareMode.STRICT_ORDER, new Customization(jsonPath,
new RegularExpressionValueMatcher<Object>(regex))));
}