### Question:
MathUtils { public static boolean doublesEqual(double d1, double d2) { return doublesEqual(d1, d2, 0.0000001); } private  MathUtils(); static boolean doublesEqual(double d1, double d2); static boolean doublesEqual(double d1, double d2, double comparator); static double average(double[] nums); static double average(Double ... nums); static double findDistance(double x1, double y1, double x2, double y2); static boolean isWithinTolerance(double value, double target, double tolerance); static double findHypotenuse(double leg1, double leg2);  }### Answer:
@Test public void doublesEqualTest() { assertEquals(true, MathUtils.doublesEqual(0.0, 0.0)); assertEquals(false, MathUtils.doublesEqual(0.0, 1.0)); assertEquals(false, MathUtils.doublesEqual(0.0, -1.0)); assertEquals(true, MathUtils.doublesEqual(-1.0, -1.0)); assertEquals(false, MathUtils.doublesEqual(-90124124.0, 90214214.0)); assertEquals(true, MathUtils.doublesEqual(351.0, 351.0)); assertEquals(false, MathUtils.doublesEqual(351.0, 361.0)); assertEquals(false, MathUtils.doublesEqual(-351.0, -371.0)); assertEquals(true, MathUtils.doublesEqual(-351.0, -351.0)); }