@Test public void flattenMultipleElements() throws Exception {

  Stream<Integer> flattened = MoreStreams.flatten(Stream.of(Stream.of(1, 2), Stream.of(3, 4)));
  assertThat(flattened.collect(toList())).containsExactly(1, 2, 3, 4).inOrder();
}