### Question:
ExperimentManager { Collection<Experiment> scheduleExperimentSuite (ExperimentSuite experimentSuite) { return scheduleExperimentSuite(experimentSuite, 1); }  void setExperimentBackoffPeriod(Duration experimentBackoffPeriod); boolean areExperimentsInProgress();  }### Answer:
@Test public void scheduleExperimentSuite () { Experiment experiment1 = mock(Experiment.class); Experiment experiment2 = mock(Experiment.class); ExperimentSuite experimentSuite = new ExperimentSuite("firstPlatform", ExperimentSuite.fromMap(Map.of("aggregator", List .of("delete", "restart")))); doReturn(Stream.of(experiment1, experiment2)).when(experimentManager) .createSpecificExperiments(firstPlatform, new ExperimentSuite.ExperimentCriteria("aggregator", List .of("delete", "restart"), Collections.emptyList()), 1); assertThat(experimentManager.scheduleExperimentSuite(experimentSuite), containsInAnyOrder(experiment1, experiment2)); }
@Test public void scheduleExperimentSuiteWithInvalidPlatform () { ExperimentSuite experimentSuite = new ExperimentSuite("fakePlatform", ExperimentSuite.fromMap(Collections.emptyMap())); try { experimentManager.scheduleExperimentSuite(experimentSuite); fail("Exception expected"); } catch (ChaosException e) { assertThat(e.getMessage(), Matchers.startsWith(String.valueOf(PLATFORM_DOES_NOT_EXIST.getErrorCode()))); } }