@Test
public void sortHostsTest() {

    List<HostResources> hosts = new ArrayList<HostResources>();
    Mockito.doNothing().when(spyAlgorithm).sortHostsUpwardScore(hosts);
    spyAlgorithm.sortHosts(hosts);
    Mockito.verify(spyAlgorithm).sortHostsUpwardScore(hosts);
}