@Test
public void largerElementsAndPivotsInArray() {

	Integer[] array = { 3, 10, 4, 3, 5, 7, 7, 3 };
	int pivotIndex = QuickSort.partition(array, 0, array.length - 1,
			ascOrderComparator, 3);
	assertEquals(2, pivotIndex);
	assertArrayEquals(
			"Failure => Array returned is not partitioned according to the pivot.",
			array, new Integer[] { 3, 3, 3, 10, 5, 7, 7, 4 });
}