AutonomiccsSystemVmsGuru implements VirtualMachineGuru, InitializingBean { @Override public void afterPropertiesSet() throws Exception { logger.debug("Autonomiccs system VMs guru initialized."); virtualMachineManager.registerGuru(VirtualMachine.Type.Instance, this); }  @Override void afterPropertiesSet(); @Override boolean finalizeCommandsOnStart(Commands arg0, VirtualMachineProfile arg1); @Override boolean finalizeDeployment(Commands cmds, VirtualMachineProfile profile, DeployDestination dest, ReservationContext context); @Override void finalizeExpunge(VirtualMachine vm); @Override boolean finalizeStart(VirtualMachineProfile arg0, long arg1, Commands arg2, ReservationContext arg3); @Override void finalizeStop(VirtualMachineProfile arg0, Answer arg1); @Override boolean finalizeVirtualMachineProfile(VirtualMachineProfile profile, DeployDestination dest, ReservationContext context); @Override void prepareStop(VirtualMachineProfile arg0);  }
@Test public void afterPropertiesSetTest() throws Exception { Mockito.doNothing().when(virtualMachineManager).registerGuru(VirtualMachine.Type.Instance, spy); spy.afterPropertiesSet(); Mockito.verify(virtualMachineManager).registerGuru(VirtualMachine.Type.Instance, spy); }