### Question:
CommonUtil { public static boolean equalNumbers(double d1, double d2) { if (Math.abs(d1 - d2) <= 0.001) { return true; } return false; } private  CommonUtil(); static boolean isEmpty(List list); static boolean isBlank(String str); static String sanitize(String v); static String DateToDayString(Date date); static Date dayToDate(String day); static String convertToString(List<String> list); static Map convertToMap(Object object); static List<String> removeStringFromItems(List<String> list, String toRemove); static Integer determinePriceCatForCPM(double price); static Integer determinePriceCatForCPC(double price); static Integer determinePriceCatForCPD(double price); static Integer determinePriceCatForCPT(double price); static Integer determinePriceCat(double price, TargetingChannel.PriceModel priceModel); static String removeEscapingCharacters(String str); static boolean equalNumbers(double d1, double d2);  }### Answer:
@Test public void equalNumbers() { double d1 = 1.0000, d2 = 2.0000; assertFalse(CommonUtil.equalNumbers(d1, d2)); d2 = 1.0001; assertTrue(CommonUtil.equalNumbers(d1, d2)); d2 = 1.001; assertTrue(CommonUtil.equalNumbers(d1, d2)); d2 = 1.01; assertFalse(CommonUtil.equalNumbers(d1, d2)); }