@Test
public void getAllHypervisorsTypeInCloudTest() {

    List<HypervisorType> hypervisors = new ArrayList<>();
    hypervisors.add(HypervisorType.XenServer);
    hypervisors.add(HypervisorType.KVM);
    Mockito.doReturn(hypervisors).when(hostDaoJdbc).getAllHypervisorsTypeInCloud();
    List<HypervisorType> result = spy.getAllHypervisorsTypeInCloud();
    Mockito.verify(hostDaoJdbc).getAllHypervisorsTypeInCloud();
    Assert.assertEquals(hypervisors.size(), result.size());
    Assert.assertEquals(hypervisors.get(0), result.get(0));
    Assert.assertEquals(hypervisors.get(1), result.get(1));
}