Assert.assertTrue(mapAsJSON.has("this"));
JSONObject thisAsJson = mapAsJSON.optJSONObject("this");
Assert.assertTrue(thisAsJson.has(GraphSONTokens.TYPE));
Assert.assertEquals(GraphSONTokens.TYPE_STRING, thisAsJson.optString(GraphSONTokens.TYPE));
Assert.assertTrue(thisAsJson.has(GraphSONTokens.VALUE));
Assert.assertEquals("some", thisAsJson.optString(GraphSONTokens.VALUE));
Assert.assertTrue(mapAsJSON.has("that"));
JSONObject thatAsJson = mapAsJSON.optJSONObject("that");
Assert.assertTrue(thatAsJson.has(GraphSONTokens.TYPE));
Assert.assertEquals(GraphSONTokens.TYPE_INTEGER, thatAsJson.optString(GraphSONTokens.TYPE));