ConsolidationScoredPreferenceForSmallHosts extends ConsolidationAlgorithmBase { protected void sortHosts(List<HostResources> hosts) { sortHostsUpwardScore(hosts); }  @Override List<HostResources> rankHosts(List<HostResources> hostsList); @Override List<HostResources> rankHostToPowerOff(List<HostResources> idleHosts);  }
@Test public void sortHostsTest() { spyAlgorithm.sortHosts(createHosts()); Mockito.verify(spyAlgorithm).sortHostsUpwardScore(Mockito.anyListOf(HostResources.class)); }