@Test
public void testReadCorrectlyProxiesForASingle() throws Exception {

    InputStream a = mock(InputStream.class);
    when(a.read()).thenReturn(1, 2, -1);
    ImmutableList<InputStream> inputStreams = ImmutableList.of(a);
    ConcatClosingInputStream concatClosingInputStream = new ConcatClosingInputStream(inputStreams.iterator());
    assertThat(concatClosingInputStream.read(), is(1));
    assertThat(concatClosingInputStream.read(), is(2));
    assertThat(concatClosingInputStream.read(), is(-1));
    assertThat(concatClosingInputStream.read(), is(-1));
    assertThat(concatClosingInputStream.read(), is(-1));
}