@Test
public void checkFrameHeaderFromPeek_invalidData_isFalse() throws Exception {

  FlacStreamMetadataHolder streamMetadataHolder =
      new FlacStreamMetadataHolder(/* flacStreamMetadata= */ null);
  ExtractorInput input =
      buildExtractorInputReadingFromFirstFrame(
          "flac/bear_one_metadata_block.flac", streamMetadataHolder);
  // The first bytes of the frame are not equal to the frame start marker.
  boolean result =
      FlacFrameReader.checkFrameHeaderFromPeek(
          input,
          streamMetadataHolder.flacStreamMetadata,
          /* frameStartMarker= */ -1,
          new SampleNumberHolder());
  assertThat(result).isFalse();
}