void () { int[][] reindexed = myReindexer.discardUnique(new int[]{1, 2, 3}, new int[]{3, 4, 1, 3}); assertTrue(Arrays.equals(reindexed[0], new int[]{1, 3})); assertTrue(Arrays.equals(reindexed[1], new int[]{3, 1, 3})); assertEquals(0, myReindexer.restoreIndex(0, 0)); assertEquals(0, myReindexer.restoreIndex(0, 1)); assertEquals(2, myReindexer.restoreIndex(1, 0)); assertEquals(2, myReindexer.restoreIndex(1, 1)); assertEquals(3, myReindexer.restoreIndex(2, 1)); }