@Test
public void should_thrown_eof_when_readBytes() throws IOException {

    InputStream eofIn = new InputStream() {
        @Override
        public int read() throws IOException {
            return -1;
        }
    };
    StrictInputStream in = new StrictInputStream(eofIn);
    assertThatThrownBy(() -> in.readBytes(2)).isExactlyInstanceOf(EOFException.class);
}