@Test
public void readMetadataBlock_streamInfoBlock_setsStreamMetadata() throws Exception {

  ExtractorInput input = buildExtractorInput("flac/bear.flac");
  input.skipFully(FlacConstants.STREAM_MARKER_SIZE);
  FlacStreamMetadataHolder metadataHolder =
      new FlacStreamMetadataHolder(/* flacStreamMetadata= */ null);
  FlacMetadataReader.readMetadataBlock(input, metadataHolder);
  assertThat(metadataHolder.flacStreamMetadata).isNotNull();
  assertThat(metadataHolder.flacStreamMetadata.sampleRate).isEqualTo(48000);
}