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