DefaultValueMapTraversal implements ValueMapTraversal { @Override public List<Map<String, Object>> getResultList() { return stream().collect(toList()); } DefaultValueMapTraversal(Supplier<GraphTraversal<?, ?>> supplier, Function<GraphTraversal<?, ?>,
            GraphTraversal<Vertex, Map<String, Object>>> flow); @Override Stream<Map<String, Object>> stream(); @Override Stream<Map<String, Object>> next(int limit); @Override Map<String, Object> next(); @Override Optional<Map<String, Object>> getSingleResult(); @Override List<Map<String, Object>> getResultList(); @Override long count();  }
@Test public void shouldReturnResultAsList() { List<Map<String, Object>> maps = graphTemplate.getTraversalVertex() .hasLabel(Person.class).valueMap("name") .getResultList(); assertEquals(3, maps.size()); }