TriangularDistribution extends AbstractRealDistribution { public double getSupportUpperBound() { return b; } TriangularDistribution(double a, double c, double b);  TriangularDistribution(RandomGenerator rng,
                                  double a,
                                  double c,
                                  double b); double getMode(); double density(double x); double cumulativeProbability(double x); double getNumericalMean(); double getNumericalVariance(); double getSupportLowerBound(); double getSupportUpperBound(); boolean isSupportLowerBoundInclusive(); boolean isSupportUpperBoundInclusive(); boolean isSupportConnected(); @Override double inverseCumulativeProbability(double p);  }
@Test public void testGetUpperBound() { TriangularDistribution distribution = makeDistribution(); Assert.assertEquals(12.0, distribution.getSupportUpperBound(), 0); }