IntervalUtils { public static ConfidenceInterval getAgrestiCoullInterval(int numberOfTrials, int numberOfSuccesses, double confidenceLevel) { return AGRESTI_COULL.createInterval(numberOfTrials, numberOfSuccesses, confidenceLevel); } private  IntervalUtils(); static ConfidenceInterval getAgrestiCoullInterval(int numberOfTrials, int numberOfSuccesses,
                                                             double confidenceLevel); static ConfidenceInterval getClopperPearsonInterval(int numberOfTrials, int numberOfSuccesses,
                                                               double confidenceLevel); static ConfidenceInterval getNormalApproximationInterval(int numberOfTrials, int numberOfSuccesses,
                                                                    double confidenceLevel); static ConfidenceInterval getWilsonScoreInterval(int numberOfTrials, int numberOfSuccesses,
                                                            double confidenceLevel);  }
@Test public void testAgrestiCoull() { checkConfidenceIntervals(new AgrestiCoullInterval().createInterval(trials, successes, confidenceLevel), IntervalUtils.getAgrestiCoullInterval(trials, successes, confidenceLevel)); }