TrailStatisticsImpl implements TrailStatistics { @Override public Statistics getDistanceSummary() { return dist; } 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 getDistanceSummary() { final Statistics dist = getStats().getDistanceSummary(); assertTrue(dist.getOutliers().isEmpty()); assertEquals(5, dist.getAll().getN()); assertEquals(3, dist.getActive().getN()); assertEquals(1, dist.getActiveDown().getN()); assertEquals(0, dist.getActiveUp().getN()); assertEquals(2, dist.getActiveFlat().getN()); }