### Question:
StreamUtils { public static <T> Stream<T> asStream(Iterator<T> sourceIterator) { return asStream(sourceIterator, false); } private  StreamUtils(); static Stream<T> asStream(Iterator<T> sourceIterator); static Stream<T> asStream(Iterator<T> sourceIterator, boolean parallel);  }### Answer:
@Test public void asStream() { List<String> list = Arrays.asList("a", "b", "c"); List<String> ret = StreamUtils.asStream(list.iterator()) .filter(item -> item.equals("a")) .collect(Collectors.toList()); Assert.assertEquals("a", ret.get(0)); }