@Test
public void listAllVmsFromHostTest() {

    List<VMInstanceVO> vms = new ArrayList<>();
    VMInstanceVO vm = Mockito.mock(VMInstanceVO.class);
    vms.add(vm);
    Mockito.doReturn(vms).when(vmInstanceDao).listByHostId(Mockito.anyLong());
    List<VMInstanceVO> result = spy.listAllVmsFromHost(0l);
    Mockito.verify(vmInstanceDao).listByHostId(Mockito.anyLong());
    Assert.assertEquals(vms, result);
    Assert.assertEquals(vms.get(0), vms.get(0));
    Assert.assertEquals(vms.size(), vms.size());
}