@Test
void testPartialIteration() {

    Optional<String> result = StreamComposition.concatAndAutoClose(a, b, c).findFirst();
    assertEquals(Optional.of("A"), result);
    assertEquals(Collections.singletonList("A"), producedItems);
    assertAllClosed();
}