### Question:
ScoredClustersAllocationAlgorithmPreferenceForBigHosts extends ScoredClustersAllocationAlgorithmPreferenceForSmallHosts { @Override protected void sortHosts(List<HostResources> sortedHosts) { sortHostsDownwardScore(sortedHosts); }    }### Answer:
@Test public void sortHostsTest() { Mockito.doNothing().when(spyAlgorithm).sortHostsDownwardScore(hosts); spyAlgorithm.sortHosts(hosts); Mockito.verify(spyAlgorithm).sortHostsDownwardScore(hosts); }