### Question:
ParamChecker { public static void asserts(boolean b, String msg) { if (!b) { throw new IllegalArgumentException(msg); } }  static T notNull(T t, String paramName); static String notEmpty(String s, String paramName); static List<T> notNulls(List<T> l, String paramName); static int greaterEqualZero(int i, String paramName); static int greaterThan(int i, int base, String paramName); static long greaterEqualZero(long i, String paramName); static long greaterThan(long i, long base, String paramName); static void asserts(boolean b, String msg);  }### Answer:
@Test public void testAssertsOK() { ParamChecker.asserts(true, "t"); }
@Test(expected = IllegalArgumentException.class) public void testAssertsFail() { ParamChecker.asserts(false, "f"); }