ClusterManagementDummyAlgorithm implements ClusterAdministrationHeuristicAlgorithm { @Override public Map<Long, HostResources> mapVMsToHost(List<HostResources> rankedHosts) { return new HashMap<>(); }  @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 mapVMsToHost() { List<HostResources> hosts = new ArrayList<HostResources>(); Map<Long, HostResources> result = spyAlgorithm.mapVMsToHost(hosts); Assert.assertNotNull(result); Assert.assertEquals(0, result.size()); }