### Question:
StreamUtilities { public static <T> boolean anyMatch(Iterable<? extends T> input, Predicate<? super T> filter) { for (T in : input) { if (filter.test(in)) { return true; } } return false; } private  StreamUtilities(); static boolean anyMatch(Iterable<? extends T> input, Predicate<? super T> filter); static List<T> filter(Collection<? extends T> input, Predicate<? super T> predicate); @SuppressWarnings("unchecked") static T[] filter(T[] input, Predicate<? super T> predicate); static T filterOne(Collection<? extends T> input, Predicate<? super T> predicate); @SuppressWarnings("unchecked") static Stream<T> filterDowncast(Stream<?> input, Class<T> type); static Collection<R> map(Collection<? extends T> input, Function<? super T, ? extends R> mapper,
            CollectionProvider<R> collectionProvider); @SuppressWarnings("unchecked") static List<R> map(Iterable<? extends T> input, Function<? super T, ? extends R> mapper);  }### Answer:
@Test public void testAnyMatch() { boolean result; result = StreamUtilities.anyMatch(Collections.emptyList(), null); Assert.assertFalse(result); result = StreamUtilities.anyMatch(INPUT, new Predicate<String>() { @Override public boolean test(String s) { return s.charAt(0) == 'A'; } }); Assert.assertTrue(result); result = StreamUtilities.anyMatch(INPUT, new Predicate<String>() { @Override public boolean test(String s) { return s.charAt(0) == 'C'; } }); Assert.assertFalse(result); }