void () { Enumerator enumerator = new Enumerator(10); int[] indecies = enumerator.enumerate(new Object[]{"a", "b", "a"}); assertTrue(Arrays.equals(new int[]{1, 2, 1}, indecies)); indecies = enumerator.enumerate(new Object[]{"a", "c", "b"}); assertTrue(Arrays.equals(new int[]{1, 3, 2}, indecies)); }