Experiment { @Override public String toString() { return MoreObjects.toStringHelper("") .add("instrument", instrumentedMethod().instrument()) .add("benchmarkMethod", instrumentedMethod().benchmarkMethod().name()) .add("target", target().name()) .add("parameters", userParameters()) .toString(); }  static Experiment create(
      int id,
      InstrumentedMethod instrumentedMethod,
      Map<String, String> userParameters,
      Target target); abstract int id(); abstract InstrumentedMethod instrumentedMethod(); abstract ImmutableSortedMap<String, String> userParameters(); abstract Target target(); abstract BenchmarkSpec benchmarkSpec(); final TrialSchedulingPolicy getTrialSchedulingPolicy(); final ExperimentSpec toExperimentSpec(); @Override String toString();  }
@Test public void testToString() throws Exception { Experiment experiment = createFakeExperiment(); assertThat(experiment.toString()) .isEqualTo( "{instrument=runtime, benchmarkMethod=myBenchmark, " + "target=default@local, parameters={baz=qux}}"); }