@Test public void areExperimentsInProgress () { doReturn(Collections.emptySet()).doReturn(Set.of(mock(Experiment.class))) .when(experimentManager) .getAllExperiments(); assertFalse(experimentManager.areExperimentsInProgress()); assertTrue(experimentManager.areExperimentsInProgress()); }
public boolean areExperimentsInProgress () { return !getAllExperiments().isEmpty(); }
ExperimentManager { public boolean areExperimentsInProgress () { return !getAllExperiments().isEmpty(); } }
ExperimentManager { public boolean areExperimentsInProgress () { return !getAllExperiments().isEmpty(); }  }
ExperimentManager { public boolean areExperimentsInProgress () { return !getAllExperiments().isEmpty(); }  void setExperimentBackoffPeriod(Duration experimentBackoffPeriod); boolean areExperimentsInProgress(); }
ExperimentManager { public boolean areExperimentsInProgress () { return !getAllExperiments().isEmpty(); }  void setExperimentBackoffPeriod(Duration experimentBackoffPeriod); boolean areExperimentsInProgress();  }