@Test
    @LoadGraphWith(MODERN)
    public void g_V_valueMap_matchXa_selectXnameX_bX() {
        final Traversal<Vertex, Map<String, Object>> traversal = get_g_V_valueMap_matchXa_selectXnameX_bX();
        printTraversalForm(traversal);
        int counter = 0;
        while (traversal.hasNext()) {
            counter++;
            final Map<String, Object> map = traversal.next();
            assertTrue(Map.class.isAssignableFrom(map.get("a").getClass()));
            final String name = ((Map<String, List<String>>) map.get("a")).get("name").get(0);
            assertEquals(name, ((List<String>) map.get("b")).get(0));
        }
        assertEquals(6, counter);
    }
@author Joshua Shinavier (http://fortytwo.net)
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/MatchTest.java