@Test
public void getAllHypervisorsTypeInCloudTest() {

    List<String> hypervisorTypesAsString = new ArrayList<>();
    hypervisorTypesAsString.add("XenServer");
    hypervisorTypesAsString.add("KVM");
    Mockito.doReturn(hypervisorTypesAsString).when(jdbcTemplate).queryForList(Mockito.eq(sqlSetAllHypervisorsTypeInCloud), Mockito.eq(String.class));
    List<HypervisorType> result = spy.getAllHypervisorsTypeInCloud();
    Mockito.verify(jdbcTemplate).queryForList(Mockito.eq(sqlSetAllHypervisorsTypeInCloud), Mockito.eq(String.class));
    Assert.assertEquals(HypervisorType.XenServer, result.get(0));
    Assert.assertEquals(HypervisorType.KVM, result.get(1));
}