assertCommon(response);
final Map<Vertex, Integer> deserializedMap = (Map<Vertex, Integer>) response.getResult().getData();
assertEquals(1, deserializedMap.size());
final Vertex deserializedMarko = deserializedMap.keySet().iterator().next();
assertEquals("marko", deserializedMarko.iterators().valueIterator("name").next().toString());
assertEquals(1, deserializedMarko.id());
assertEquals(Vertex.DEFAULT_LABEL, deserializedMarko.label());
assertEquals(new Integer(29), (Integer) deserializedMarko.iterators().valueIterator("age").next());
assertEquals(2, StreamFactory.stream(deserializedMarko.iterators().propertyIterator()).count());
assertEquals(new Integer(1000), deserializedMap.values().iterator().next());
}