@Test
public void rankClustersToAllocationTest() {

    List<ClusterResourcesAvailableToStart> clusters = new ArrayList<ClusterResourcesAvailableToStart>();
    Mockito.doReturn(clusters).when(spyAlgorithm).cloneListOfClusters(clusters);
    List<ClusterResourcesAvailableToStart> clonedClustersToAllocation = spyAlgorithm.rankClustersToAllocation(clusters);
    Mockito.verify(spyAlgorithm).cloneListOfClusters(clusters);
    Assert.assertEquals(clusters, clonedClustersToAllocation);
}