@Test
void testFullRead() throws IOException {

    byte[] buffer = new byte[10];
    InputStream testStream = new TestInputStream();
    Assertions.assertThat(StreamUtil.eagerRead(testStream, buffer)).isEqualTo(10);
    assertThat(StreamUtil.eagerRead(testStream, buffer)).isEqualTo(10);
    assertThat(StreamUtil.eagerRead(testStream, buffer)).isEqualTo(5);
    assertThat(StreamUtil.eagerRead(testStream, buffer)).isEqualTo(-1);
    assertThat(StreamUtil.eagerRead(testStream, buffer)).isEqualTo(-1);
}