@Test
public void testPeekFullyAtEndOfStreamWithAllowEndOfInputSucceeds() throws Exception {

  DefaultExtractorInput input = createDefaultExtractorInput();
  byte[] target = new byte[TEST_DATA.length];
  // Check peeking up to the end of input succeeds.
  assertThat(input.peekFully(target, 0, TEST_DATA.length, true)).isTrue();
  // Check peeking at the end of input with allowEndOfInput signals the end of input.
  assertThat(input.peekFully(target, 0, 1, true)).isFalse();
}