### Question:
GeometricDistribution extends AbstractDiscreteDistribution { public double getProbabilityOfSuccess() { return probabilityOfSuccess; } GeometricDistribution(double p); double getProbabilityOfSuccess(); @Override double probability(int x); @Override double logProbability(int x); @Override double cumulativeProbability(int x); @Override double getMean(); @Override double getVariance(); @Override int getSupportLowerBound(); @Override int getSupportUpperBound(); @Override boolean isSupportConnected(); @Override int inverseCumulativeProbability(double p);  }### Answer:
@Test void testParameterAccessors() { for (final double x : new double[] {0.1, 0.456, 0.999}) { final GeometricDistribution dist = new GeometricDistribution(x); Assertions.assertEquals(x, dist.getProbabilityOfSuccess()); } }