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));
Assert.assertTrue(thatAsJson.has(GraphSONTokens.VALUE));
Assert.assertEquals(1, thatAsJson.optInt(GraphSONTokens.VALUE));
}
/**
* This test is kinda weird since a Blueprints graph can't have properties set to null, howerver that does not
* mean that a graph may never return null (https://github.com/tinkerpop/blueprints/issues/400).