### Question:
TriangularDistribution extends AbstractContinuousDistribution { public double getMode() { return c; } TriangularDistribution(double a,
                                  double c,
                                  double b); double getMode(); @Override double density(double x); @Override double cumulativeProbability(double x); @Override double getMean(); @Override double getVariance(); @Override double getSupportLowerBound(); @Override double getSupportUpperBound(); @Override boolean isSupportConnected(); @Override double inverseCumulativeProbability(double p);  }### Answer:
@Test void testParameterAccessors() { for (final double x : new double[] {0.1, 0.2, 0.45}) { final TriangularDistribution dist = new TriangularDistribution(0, x, 1.0); Assertions.assertEquals(x, dist.getMode()); } }