### Question:
ParaCheckUtil { public static void checkNotEmpty(Collection<?> param, String paraName) throws RuntimeException { if (param == null || param.size() == 0) { throw new RuntimeException(String.format("%s is not allowed to be empty", 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 testCheckNotEmpty() { ParaCheckUtil.checkNotEmpty(Arrays.asList("zhangsan", "lisi"), "names"); try { ParaCheckUtil.checkNotEmpty(new ArrayList<>(), "names"); fail("cannot access here."); } catch (Exception e) { Assert.assertTrue(e instanceof RuntimeException); Assert.assertEquals("names is not allowed to be empty", e.getMessage()); } }