### Question:
ParaCheckUtil { public static void checkNotNull(Object param, String paraName) throws RuntimeException { if (param == null) { throw new RuntimeException(String.format("%s is not allowed to be null", paraName)); } }  static void checkNotNull(Object param, String paraName); static void checkNotBlank(String param, String paraName); static void checkNotEmpty(Collection<?> param, String paraName);  }### Answer:
@Test public void testCheckNotNull() { ParaCheckUtil.checkNotNull("zhangsan", "name"); try { ParaCheckUtil.checkNotNull(null, "name"); fail("cannot access here."); } catch (Exception e) { Assert.assertTrue(e instanceof RuntimeException); Assert.assertEquals("name is not allowed to be null", e.getMessage()); } }