### Question:
McNemar { public static boolean test(int n11, int n12, int n21, int n22, boolean is_twoTailed, double aLevel) { double pvalue= getPvalue(n11,n12,n21,n22); boolean rejectH0=false; double a=aLevel; if(is_twoTailed) { a=aLevel/2; } if(pvalue<=a || pvalue>=(1-a)) { rejectH0=true; } return rejectH0; }  static double getPvalue(int n11, int n12, int n21, int n22); static boolean test(int n11, int n12, int n21, int n22, boolean is_twoTailed, double aLevel);  }### Answer:
@Test public void testTest() { logger.info("test"); int n11 = 101; int n12 = 121; int n21 = 59; int n22 = 33; boolean is_twoTailed = true; double aLevel = 0.05; boolean expResult = true; boolean result = McNemar.test(n11, n12, n21, n22, is_twoTailed, aLevel); assertEquals(expResult, result); }