Assert.assertTrue(json.has(GraphSONTokens._LABEL));
Assert.assertEquals("test", json.optString(GraphSONTokens._LABEL));
Assert.assertTrue(json.has(GraphSONTokens._TYPE));
Assert.assertEquals("edge", json.optString(GraphSONTokens._TYPE));
Assert.assertTrue(json.has(GraphSONTokens._IN_V));
Assert.assertEquals(2, json.optInt(GraphSONTokens._IN_V));
Assert.assertTrue(json.has(GraphSONTokens._OUT_V));
Assert.assertEquals(1, json.optInt(GraphSONTokens._OUT_V));
Assert.assertTrue(json.has("weight"));
Assert.assertEquals(0.5d, json.optDouble("weight"), 0.0d);
}