/** @throws JSONException */ private void assertFileNodeInfo(JSONObject j) throws JSONException { assertEquals("/path/to/file.doc", j.getString("jcr:path")); assertEquals("file.doc", j.getString("jcr:name")); assertEquals("bar", j.getString("foo")); assertEquals("text/plain", j.getString("jcr:mimeType")); assertEquals(12345, j.getLong("jcr:data")); }