@Test
public void sortHostsTest() {

    Mockito.doNothing().when(spyAlgorithm).sortHostsDownwardScore(hosts);
    spyAlgorithm.sortHosts(hosts);
    Mockito.verify(spyAlgorithm).sortHostsDownwardScore(hosts);
}