@Test
public void shouldReturnMapValues() {

    List<String> names = graphTemplate.getTraversalVertex()
            .hasLabel(Person.class).valueMap("name")
            .stream()
            .map(m -> m.getOrDefault("name", "").toString()).collect(Collectors.toList());
    assertThat(names, Matchers.containsInAnyOrder("[Poliana]", "[Otavio]", "[Paulo]"));
}