### Question:
Statistics { public Statistics() {} Statistics();  Statistics(Object numberArray);  Statistics(Object numberArray, boolean signed);  Statistics(double[] numberArray); static double[] getDoubleArray(Object numberArray); static double[] getDoubleArray(Object numberArray, boolean signed); static Statistics of(int samples, double max, double min,
            double mean, double median, double lowerQuartile,
            double upperQuartile, int uniques); int getSamples(); double getMax(); double getMin(); double getMean(); double getMedian(); double getMidrange(); double getRange(); double getLowerQuartile(); double getUpperQuartile(); int getUniques(); double getIqr(); @Override String toString();  }### Answer:
@Test public void testStatistics() { Object input = new double[]{ 1.0, 1.0, 3.5, 4.2, 5.5, 6.0, 7.0, 8.3, 8.5 }; Statistics s = new Statistics(input); assertEquals(s.samples, 9); assertEquals(s.max, 8.5, delta); assertEquals(s.min, 1.0, delta); assertEquals(s.mean, 5.0, delta); assertEquals(s.median, 5.5, delta); assertEquals(s.midrange, 4.75, delta); assertEquals(s.range, 7.5, delta); assertEquals(s.lowerQuartile, 3.5, delta); assertEquals(s.upperQuartile, 7.0, delta); }