AutonomiccsSystemVmDeploymentService implements InitializingBean { protected Map<String, String> getConfigurationsFromDatabase() { return this.configurationDao.getConfiguration("management-server", new HashMap<String, Object>()); }  HostVO searchForRandomHostInCloudToDeployAutonomiccsSystemVm(); HostVO searchForRandomHostInPodToDeployAutonomiccsSystemVm(HostPodVO pod); HostVO searchForAnotherRandomHostToStartSystemVm(VMInstanceVO vmInstance); AutonomiccsSystemVm deploySystemVmWithJava(Long hostId, SystemVmType systemVmType); @Override void afterPropertiesSet();  }
@Test public void getConfigurationsFromDatabaseTest() { Map<String, String> map = new HashMap<>(); Mockito.doReturn(map).when(configurationDao).getConfiguration(Mockito.eq("management-server"), Matchers.<Map<String, Object>> any()); Map<String, String> result = spy.getConfigurationsFromDatabase(); Assert.assertEquals(map, result); }