@Test
    public void shouldCheckWithinListsOfIdsForStartStepHasId() {
        final GraphTraversalSource g = TinkerFactory.createModern().traversal();

        final List<Vertex> expectedStartTraversal = g.V().hasId(1, 2).toList();

        assertEquals(expectedStartTraversal, g.V().hasId(new Integer[]{1, 2}).toList());
        assertEquals(expectedStartTraversal,g.V().hasId(Arrays.asList(1, 2)).toList());
    }
Validating that start-step hasId() 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