@Test(dataProvider = "removeAllDuplicatesObjects")
public void testRemoveDuplicates(int[] array, int[] expected) {

    int len = new RemoveDuplicates().removeDuplicates(array);
    int[] actual = IntStream.of(array).limit(len).toArray();
    assertEquals(actual, expected);
}