@Test
void batchedStreamOf_empty() {

    Stream<Integer> sourceStream = Stream.empty();
    List<List<Integer>> batches = BatchingIterator.batchedStreamOf(sourceStream, 3)
            .collect(Collectors.toList());
    assertThat(batches).isNotNull();
    assertThat(batches).isEmpty();
}