ClusterManagementDummyAlgorithm implements ClusterAdministrationHeuristicAlgorithm { @Override public List<HostResources> rankHostToPowerOff(List<HostResources> idleHosts) { return cloneListOfHosts(idleHosts); }  @Override int getClusterIntervalBetweenConsolidation(); @Override List<HostResources> rankHosts(List<HostResources> hosts); @Override Map<Long, HostResources> mapVMsToHost(List<HostResources> rankedHosts); @Override List<HostResources> rankHostToPowerOff(List<HostResources> idleHosts); @Override boolean canPowerOffHost(HostResources hostToPowerOff, CloudResources cloudResources); @Override boolean canPowerOffAnotherHostInCloud(CloudResources cloudResources); @Override boolean canHeuristicShutdownHosts();  }
@Test public void rankHostToPowerOffTest() { List<HostResources> hosts = new ArrayList<HostResources>(); spyAlgorithm.rankHostToPowerOff(hosts); Mockito.verify(spyAlgorithm).cloneListOfHosts(hosts); }