### Question:
ShapiroWilk { public static boolean test(FlatDataCollection flatDataCollection, double aLevel) { boolean rejectH0=false; double probability = shapiroWilkW(flatDataCollection.stream().filter(x -> x!=null).mapToDouble(TypeInference::toDouble).toArray()); double a=aLevel; if(probability<=a || probability>=(1.0-a)) { rejectH0=true; } return rejectH0; }  static boolean test(FlatDataCollection flatDataCollection, double aLevel);  }### Answer:
@Test public void testTest() { logger.info("test"); FlatDataCollection flatDataCollection = new FlatDataCollection(Arrays.asList(new Object[]{33.4, 33.3, 31.0, 31.4, 33.5, 34.4, 33.7, 36.2, 34.9, 37.0})); double aLevel = 0.05; boolean expResult = false; boolean result = ShapiroWilk.test(flatDataCollection, aLevel); assertEquals(expResult, result); }