Times { public String getAverageTimeString() { return RenderingUtils.convertNanosecondsToTimeString( (long) times.stream().mapToLong(v -> v.time).average().orElse(0) ); }  void addTime(final long nanoseconds, final int featureIndex); String getMinimumTimeString(); int getMinimumTimeScenarioIndex(); String getMaximumTimeString(); int getMaximumTimeScenarioIndex(); String getAverageTimeString();  }
@Test public void getAverageTimeString() { assertThat(times.getAverageTimeString(), is("0m 00s 333ms")); }