@Test(dataProvider = "arraySize")
public void revertSortedArray(final Integer size) {

	final double[] values = array(size, new Random());
	Arrays.sort(values);
	final double[] reverted = ProbabilitySelector.sortAndRevert(values);
	for (int i = 0; i < values.length; ++i) {
		Assert.assertEquals(reverted[i], (values.length - i - 1));
	}
}