TrailStatisticsImpl implements TrailStatistics { @Override public Statistics getSpeedSummary() { return speed; } TrailStatisticsImpl(
      final Statistics time,
      final Statistics dist,
      final Statistics ele,
      final Statistics eleDiff,
      final Statistics speed,
      final Statistics grade); @Override Statistics getTimeDifferenceSummary(); @Override Statistics getDistanceSummary(); @Override Statistics getElevationDifferenceSummary(); @Override Statistics getSpeedSummary(); @Override Statistics getGradeSummary(); @Override Statistics getElevationSummary(); @Override String toString(); @Override int hashCode(); @Override boolean equals(final Object obj);  }
@Test public void getSpeedSummary() { final Statistics speed = getStats().getSpeedSummary(); assertTrue(speed.getOutliers().isEmpty()); assertEquals(5, speed.getAll().getN()); assertEquals(3, speed.getActive().getN()); assertEquals(1, speed.getActiveDown().getN()); assertEquals(0, speed.getActiveUp().getN()); assertEquals(2, speed.getActiveFlat().getN()); }