@Test
public void testReadVarintExceedsMaximumAllowedLength() throws IOException, InterruptedException {

  VarintReader reader = new VarintReader();
  ExtractorInput input = new FakeExtractorInput.Builder()
      .setData(DATA_8_BYTE_0)
      .setSimulateUnknownLength(true)
      .build();
  long result = reader.readUnsignedVarint(input, false, true, 4);
  assertThat(result).isEqualTo(RESULT_MAX_LENGTH_EXCEEDED);
}