@Test
public void readByte_getEof() throws Exception {

    when(wrappedStream.read()).thenReturn(EOF);
    assertEquals(EOF, stream.read());
    //noinspection ResultOfMethodCallIgnored
    verify(wrappedStream, times(1)).read();
    verify(listener, times(1)).reachedEof(0);
}