### Question:
Utils { public static boolean isCollectionEmpty(Collection<?> coll) { return coll == null || coll.isEmpty(); } private  Utils(); static Pattern safePatternCompile(String pattern); static boolean isClassLoaded(String className); static void logAndSendMessage(CommandSender sender, String message); static void logAndSendWarning(CommandSender sender, String message); static boolean isCollectionEmpty(Collection<?> coll); static boolean isEmailEmpty(String email); static final long MILLIS_PER_MINUTE; static final long MILLIS_PER_HOUR; }### Answer:
@Test public void shouldCheckIfCollectionIsEmpty() { List<String> emptyList = Collections.emptyList(); Collection<Integer> nonEmptyColl = Arrays.asList(3, 4, 5); assertThat(Utils.isCollectionEmpty(emptyList), equalTo(true)); assertThat(Utils.isCollectionEmpty(nonEmptyColl), equalTo(false)); assertThat(Utils.isCollectionEmpty(null), equalTo(true)); }