### Question:
CollectionUtil { public static boolean containsAny(final Collection<?> collection, final Object... items) { if (collection != null) { for (final Object item : items) { final boolean b = collection.contains(item); if (b) { return true; } } } return false; } 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 testContainsAny() { assertFalse("null", CollectionUtil.containsAny((Collection<?>) null, "bla", 2)); final HashSet<Object> col = new HashSet<>(); assertFalse("empty", CollectionUtil.containsAny(col, "bla", 2)); col.add(1); assertFalse("contains 1", CollectionUtil.containsAny(col, "bla", 2)); col.add(2); assertTrue("contains 2", CollectionUtil.containsAny(col, "bla", 2)); col.add("bla"); assertTrue("contains 2 and bla", CollectionUtil.containsAny(col, "bla", 2)); col.remove(2); assertTrue("contains bla", CollectionUtil.containsAny(col, "bla", 2)); col.remove("bla"); assertFalse("contains nothing", CollectionUtil.containsAny(col, "bla", 2)); }