@Test
public void rankHostsToStartTest() {

    List<HostResources> hosts = new ArrayList<HostResources>();
    Mockito.doReturn(hosts).when(spyAlgorithm).cloneListOfHosts(hosts);
    List<HostResources> clonedHostsToStart = spyAlgorithm.rankHostsToStart(hosts);
    Mockito.verify(spyAlgorithm).cloneListOfHosts(hosts);
    Assert.assertEquals(hosts, clonedHostsToStart);
}