@Test(expected = IllegalArgumentException.class)
public void readMetadataBlock_nonStreamInfoBlockWithNullStreamMetadata_throwsException()
    throws Exception {

  ExtractorInput input = buildExtractorInput("flac/bear.flac");
  // Skip to seek table block.
  input.skipFully(FlacConstants.STREAM_MARKER_SIZE + FlacConstants.STREAM_INFO_BLOCK_SIZE);
  FlacMetadataReader.readMetadataBlock(
      input, new FlacStreamMetadataHolder(/* flacStreamMetadata= */ null));
}