AllocationAlgorithmBase implements AllocationAlgorithm { @Override public boolean needsToActivateHost(CloudResources cloudCapacity) { return false; }  @Override List<ClusterResourcesAvailableToStart> rankClustersToAllocation(List<ClusterResourcesAvailableToStart> clusters); @Override boolean needsToActivateHost(CloudResources cloudCapacity); @Override List<HostResources> rankHostsToStart(List<HostResources> hostsResources);  }
@Test public void needsToActivateHostTest() { CloudResources cloudCapacity = Mockito.mock(CloudResources.class); Assert.assertFalse(spyAlgorithm.needsToActivateHost(cloudCapacity)); }