ConsolidationScoredPreferenceForBigHosts extends ConsolidationScoredPreferenceForSmallHosts { @Override protected void sortHosts(List<HostResources> sortedHosts) { sortHostsDownwardScore(sortedHosts); }    }
@Test public void sortHostsTest() { List<HostResources> hosts = new ArrayList<HostResources>(); spyAlgorithm.sortHosts(hosts); Mockito.verify(spyAlgorithm).sortHostsDownwardScore(hosts); }