### Question:
CloudFoundryApplication extends Container { @ChaosExperiment(experimentType = ExperimentType.STATE) public void restartApplication (Experiment experiment) { experiment.setSelfHealingMethod(restageApplication); experiment.setCheckContainerHealth(isAppHealthy); cloudFoundryApplicationPlatform.restartApplication(name); } CloudFoundryApplication(); List<CloudFoundryApplicationRoute> getApplicationRoutes(); static CloudFoundryApplicationBuilder builder(); Integer getOriginalContainerInstances(); Integer getActualContainerInstances(); String getApplicationID(); @Override Platform getPlatform(); @Override String getSimpleName(); @Override String getAggregationIdentifier(); @Override DataDogIdentifier getDataDogIdentifier(); @ChaosExperiment(experimentType = ExperimentType.RESOURCE) void scaleApplication(Experiment experiment); @ChaosExperiment(experimentType = ExperimentType.STATE) void restartApplication(Experiment experiment); @ChaosExperiment(experimentType = ExperimentType.STATE) void restageApplication(Experiment experiment); @ChaosExperiment(experimentType = ExperimentType.NETWORK) void unmapRoute(Experiment experiment);  }### Answer:
@Test public void restartApplication () throws Exception { cloudFoundryApplication.restartApplication(experiment); verify(experiment, times(1)).setCheckContainerHealth(ArgumentMatchers.any()); verify(experiment, times(1)).setSelfHealingMethod(ArgumentMatchers.any()); Mockito.verify(cloudFoundryApplicationPlatform, times(1)).restartApplication(name); experiment.getSelfHealingMethod().run(); }