### Question:
CollectionUtil { public static boolean noneEmpty(final Collection<?>... collections) { if (collections.length == 0) { return false; } for (final Collection<?> col : collections) { if (isEmpty(col)) { return false; } } return true; } private  CollectionUtil(); static boolean isEmpty(final Collection<?> col); static boolean isNotEmpty(final Collection<?> col); static boolean hasOneItem(final Collection<?> col); static boolean isNotEmpty(final Object[] array); static int size(final Collection<?> col); static boolean contains(final Collection<?> collection, final Object item); static boolean containsAny(final Collection<?> collection, final Object... items); static boolean noneEmpty(final Collection<?>... collections); static boolean sameContent(final Collection<?> c1, final Collection<?> c2);  }### Answer:
@Test public void testNoneEmpty() { assertFalse("1a null", CollectionUtil.noneEmpty()); assertFalse("1b null", CollectionUtil.noneEmpty((Collection<?>) null)); assertFalse("2 null", CollectionUtil.noneEmpty(null, null)); assertFalse("empty null", CollectionUtil.noneEmpty(Collections.emptyList(), null)); assertFalse("empty empty", CollectionUtil.noneEmpty(Collections.emptyList(), Collections.emptyList())); final HashSet<Integer> col = new HashSet<>(); assertFalse("empty empty", CollectionUtil.noneEmpty(col, col)); col.add(1); assertTrue("1", CollectionUtil.noneEmpty(col)); final HashSet<String> col2 = new HashSet<>(); assertFalse("1 and 2 empty", CollectionUtil.noneEmpty(col, col2)); assertFalse("1 and null 2 empty", CollectionUtil.noneEmpty(col, null, col2)); col2.add("bla"); assertFalse("1 and null 2", CollectionUtil.noneEmpty(col, null, col2)); assertTrue("1 and 2", CollectionUtil.noneEmpty(col, col2)); }