### Question:
Boxplot { public double median() { return m(2); } Boxplot(Double[] values);  Boxplot(Collection<Double> values);  Boxplot(double[] values); double median(); double q1(); double q3(); InterquatileRange innerFences(); InterquatileRange outerFences(); InterquatileRange fences(double m); double[] getValues(); double[] getValues(InterquatileRange fence); double[] filter(Predicate<Double> p);  }### Answer:
@Test public void testMedianOddEven() { assertEquals(Double.valueOf(2), Double.valueOf(new Boxplot(new double[] { 1, 3, 2 }).median())); assertEquals(Double.valueOf(2.5), Double.valueOf(new Boxplot( new double[] { 3, 1, 3, 2 }).median())); }
@Test public void testMedianReal() { assertEquals(Double.valueOf(70.5), Double.valueOf(this.boxplot.median())); }