@Test
public void testReadArray_getEof() throws Exception {

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