@Test
public void cloneListOfHostsTest() {

    List<HostResources> hosts = new ArrayList<HostResources>();
    HostResources host = Mockito.mock(HostResources.class);
    hosts.add(host);
    List<HostResources> clonedHosts = spyAlgorithm.cloneListOfHosts(hosts);
    Assert.assertNotNull(clonedHosts);
    Assert.assertEquals(1, clonedHosts.size());
    Assert.assertEquals(hosts, clonedHosts);
    Assert.assertEquals(host, clonedHosts.get(0));
}