public void serializeToMapWithElementForKey() throws Exception {
final TinkerGraph g = TinkerFactory.createClassic();
final Map<Vertex, Integer> map = new HashMap<>();
map.put(g.V().<Vertex>has("name", Compare.eq, "marko").next(), 1000);
final ResponseMessage response = convert(map);
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());