@Test public void flattenWithLeadingInfiniteStream() throws Exception {

  Stream<Integer> flattened =
      MoreStreams.flatten(Stream.of(Stream.iterate(1, i -> i + 1), Stream.of(100)));
  assertThat(flattened.limit(5).collect(toList()))
      .containsExactly(1, 2, 3, 4, 5).inOrder();
}