@Test
public void rankHostsTest() {

    spyAlgorithm.rankHosts(createHosts());
    InOrder inOrder = Mockito.inOrder(spyAlgorithm);
    inOrder.verify(spyAlgorithm).cloneListOfHosts(Mockito.anyListOf(HostResources.class));
    inOrder.verify(spyAlgorithm).setEachHostScore(Mockito.anyListOf(HostResources.class));
    inOrder.verify(spyAlgorithm).sortHosts(Mockito.anyListOf(HostResources.class));
}