@Test
    @LoadGraphWith(MODERN)
    public void g_V_chooseXlabel_person__age_groupCountXaX__name_groupCountXbXX_capXa_bX() {
        final Traversal<Vertex, Map<String, Map<Object, Long>>> traversal = get_g_V_chooseXlabel_person__age_groupCountXaX__name_groupCountXbXX_capXa_bX();
        printTraversalForm(traversal);
        assertTrue(traversal.hasNext());
        final Map<String, Map<Object, Long>> map = traversal.next();
        assertFalse(traversal.hasNext());
        assertEquals(2, map.size());
        assertTrue(map.containsKey("a"));
        assertTrue(map.containsKey("b"));
        assertEquals(4, map.get("a").size());
        assertEquals(2, map.get("b").size());
        assertEquals(1l, map.get("a").get(27).longValue());
        assertEquals(1l, map.get("a").get(29).longValue());
        assertEquals(1l, map.get("a").get(32).longValue());
        assertEquals(1l, map.get("a").get(35).longValue());
        assertEquals(1l, map.get("b").get("ripple").longValue());
        assertEquals(1l, map.get("b").get("lop").longValue());
        assertFalse(traversal.hasNext());
    }
@author Marko A. Rodriguez (http://markorodriguez.com)
gremlin-test/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/step/sideEffect/SideEffectCapTest.java