@Test
public void getFirstSampleNumber_returnsSampleNumber() throws Exception {

  FlacStreamMetadataHolder streamMetadataHolder =
      new FlacStreamMetadataHolder(/* flacStreamMetadata= */ null);
  ExtractorInput input =
      buildExtractorInputReadingFromFirstFrame(
          "flac/bear_one_metadata_block.flac", streamMetadataHolder);
  // Skip first frame.
  input.skip(5030);
  long result =
      FlacFrameReader.getFirstSampleNumber(input, streamMetadataHolder.flacStreamMetadata);
  assertThat(result).isEqualTo(4096);
}