### Question:
WilcoxonOneSample { public static boolean test(FlatDataCollection flatDataCollection, double median, boolean is_twoTailed, double aLevel) { double pvalue= getPvalue(flatDataCollection, median); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2.0; } if(pvalue<=a || pvalue>=(1.0-a)) { rejectH0=true; } return rejectH0; }  static double getPvalue(FlatDataCollection flatDataCollection, double median); static boolean test(FlatDataCollection flatDataCollection, double median, boolean is_twoTailed, double aLevel);  }### Answer:
@Test public void testTest() { logger.info("test"); FlatDataCollection flatDataCollection = new FlatDataCollection(Arrays.asList(new Object[]{19.5,19.8,18.9,20.4,20.2,21.5,19.9,20.9,18.1,20.5,18.3,19.5,18.3,19.0,18.2,23.9,17.0,19.7,21.7,19.5})); double median = 20.8; boolean is_twoTailed = true; double aLevel = 0.05; boolean expResult = true; boolean result = WilcoxonOneSample.test(flatDataCollection, median, is_twoTailed, aLevel); assertEquals(expResult, result); }