public void VerifyJSONByteArray(JSONData jd) { Region r = getRootRegion("testSimplePdx"); PdxInstance pdx = JSONFormatter.fromJSON(jd.getJsonByteArray()); r.put(1, pdx); pdx = (PdxInstance)r.get(1); byte[] jsonByteArray = JSONFormatter.toJSONByteArray(pdx); byte[] o1 = jsonParse(jd.getJsonByteArray()); byte[] o2 = jsonParse(jsonByteArray); // junit.framework.Assert.assertEquals("Pdx byte aray are not equal after fetching from cache " + jd.getFileName(), o1, o2); compareByteArray(o1, o2); PdxInstance pdx2 = JSONFormatter.fromJSON(jsonByteArray); boolean pdxequals = pdx.equals(pdx2); junit.framework.Assert.assertEquals("Pdx are not equal for byte array ; json filename " + jd.getFileName(), pdx, pdx2 ); } public void compareByteArray(byte[] b1, byte[] b2) {