### Question:
CommonUtil { public static Integer determinePriceCatForCPM(double price) { if (price >= 0.0 && price <= 12) { return 1; } if (price > 12 && price <= 25) { return 2; } if (price > 25) { return 3; } return 3; } 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 determinePriceCatForCPM() { double d = 123.456; assertEquals(3, (int) CommonUtil.determinePriceCatForCPM(d)); d = 456789123456D; assertEquals(3, (int) CommonUtil.determinePriceCatForCPM(d)); d = 11.9999999; assertEquals(1, (int) CommonUtil.determinePriceCatForCPM(d)); d = 12.00001; assertEquals(2, (int) CommonUtil.determinePriceCatForCPM(d)); d = 25.00001; assertEquals(3, (int) CommonUtil.determinePriceCatForCPM(d)); }