StreamUtil { public static <T> Stream<T> toStream(final Iterable<T> loader) { return StreamSupport.stream(loader.spliterator(), false); } private  StreamUtil(); static Stream<T> toStream(final Iterable<T> loader); static Function<X, X> toFunction(final Consumer<X> f);  }
@Test void notParallel() { final Collection<String> c = Collections.emptyList(); final Stream<String> s = StreamUtil.toStream(c); assertThat(s.isParallel()).isFalse(); }