### Question:
OddsRatioToClinicalConverter { public Interval<Double> getRisk(Interval<Double> scale) { double baselineOdds = d_br.getBaselineDistribution(d_om).getQuantile(0.5); double oddsL = scale.getLowerBound() * baselineOdds; double oddsU = scale.getUpperBound() * baselineOdds; return new Interval<Double>(oddsToRisk(oddsL), oddsToRisk(oddsU)); } OddsRatioToClinicalConverter(MetaBenefitRiskAnalysis br, OutcomeMeasure om); Interval<Double> getOddsRatio(Interval<Double> scale); Interval<Double> getRisk(Interval<Double> scale); double getRiskDifference(Interval<Double> scale); double getNumberNeededToTreat(Interval<Double> scale);  }### Answer:
@Test public void testGetRisk() { Interval<Double> oddsRatio = new Interval<Double>(0.95, 1.25); Interval<Double> odds = new Interval<Double>(oddsRatio.getLowerBound() * d_baselineOdds, oddsRatio.getUpperBound() * d_baselineOdds); Interval<Double> expected = new Interval<Double>(odds.getLowerBound() / (1 + odds.getLowerBound()), odds.getUpperBound() / (1 + odds.getUpperBound())); assertEquals(expected.getLowerBound(), d_orc.getRisk(oddsRatio).getLowerBound(), EPSILON); assertEquals(expected.getUpperBound(), d_orc.getRisk(oddsRatio).getUpperBound(), EPSILON); }