ScoredClustersAllocationAlgorithmPreferenceForBigHosts extends ScoredClustersAllocationAlgorithmPreferenceForSmallHosts { protected void sortHostsDownwardScore(List<HostResources> hosts) { Collections.sort(hosts, hostReversedComparator); }    }
@Test public void sortHostsDownwardScoreTest() { List<HostResources> hosts = createHostsWithScore(); spyAlgorithm.sortHostsDownwardScore(hosts); Assert.assertEquals(4.0, hosts.get(0).getScore(), 0); Assert.assertEquals(3.0, hosts.get(1).getScore(), 0); Assert.assertEquals(2.0, hosts.get(2).getScore(), 0); Assert.assertEquals(1.0, hosts.get(3).getScore(), 0); }