AutonomiccsSystemVmDeploymentService implements InitializingBean { @Override public void afterPropertiesSet() throws Exception { loadAutonomiccsSystemVmServiceOffering(); if (autonomiccsSystemVmServiceOffering == null) { throw new CloudRuntimeException("Could not register the Autonomiccs system VMs service offering."); } }  HostVO searchForRandomHostInCloudToDeployAutonomiccsSystemVm(); HostVO searchForRandomHostInPodToDeployAutonomiccsSystemVm(HostPodVO pod); HostVO searchForAnotherRandomHostToStartSystemVm(VMInstanceVO vmInstance); AutonomiccsSystemVm deploySystemVmWithJava(Long hostId, SystemVmType systemVmType); @Override void afterPropertiesSet();  }
@Test public void afterPropertiesSetTest() throws Exception { Mockito.doNothing().when(spy).loadAutonomiccsSystemVmServiceOffering(); spy.afterPropertiesSet(); Mockito.verify(spy).loadAutonomiccsSystemVmServiceOffering(); }