private void testDedupLocalStep(final Object input, final List expectedResult) {
        final Traversal.Admin traversal = mock(Traversal.Admin.class);
        when(traversal.getTraverserSetSupplier()).thenReturn(TraverserSetSupplier.instance());
        final Traverser.Admin traverser = mock(Traverser.Admin.class);
        when(traverser.get()).thenReturn(input);

        final DedupLocalStep dedupStep = new DedupLocalStep(traversal);
        final Set result = dedupStep.map(traverser);
        assertEquals(new LinkedHashSet(expectedResult), result);
    }
@author Daniel Kuppitz (http://gremlin.guru)
gremlin-core/src/test/java/org/apache/tinkerpop/gremlin/process/traversal/step/map/DedupLocalStepTest.java