@Test
    public void shouldAllowHeterogeneousIdsWithAnyManager() {
        final Configuration anyManagerConfig = new BaseConfiguration();
        anyManagerConfig.addProperty(TinkerGraph.GREMLIN_TINKERGRAPH_EDGE_ID_MANAGER, TinkerGraph.DefaultIdManager.ANY.name());
        anyManagerConfig.addProperty(TinkerGraph.GREMLIN_TINKERGRAPH_VERTEX_ID_MANAGER, TinkerGraph.DefaultIdManager.ANY.name());
        anyManagerConfig.addProperty(TinkerGraph.GREMLIN_TINKERGRAPH_VERTEX_PROPERTY_ID_MANAGER, TinkerGraph.DefaultIdManager.ANY.name());
        final Graph graph = TinkerGraph.open(anyManagerConfig);
        final GraphTraversalSource g = traversal().withEmbedded(graph);

        final UUID uuid = UUID.fromString("0E939658-ADD2-4598-A722-2FC178E9B741");
        g.addV("person").property(T.id, 100).
                addV("person").property(T.id, "1000").
                addV("person").property(T.id, "1001").
                addV("person").property(T.id, uuid).iterate();

        assertEquals(3, g.V(100, "1000", uuid).count().next().intValue());
    }
Validating that mid-traversal hasId() also unwraps ids in lists in addition to ids in arrays as per TINKERPOP-2863
tinkergraph-gremlin/src/test/java/org/apache/tinkerpop/gremlin/tinkergraph/structure/TinkerGraphTest.java