@Test
public void cloneHostVmsListTest() {

    HostResources host = Mockito.mock(HostResources.class);
    List<VmResources> vms = new ArrayList<VmResources>();
    VmResources vm = Mockito.mock(VmResources.class);
    vms.add(vm);
    Mockito.when(host.getVmsResources()).thenReturn(vms);
    List<VmResources> result = spyAlgorithm.cloneHostVmsList(host);
    Assert.assertNotNull(result);
    Assert.assertEquals(vms.size(), result.size());
    Assert.assertEquals(vms, result);
    Assert.assertEquals(vm, result.get(0));
    Assert.assertFalse(vms == result);
}