@Test
public void readSeekTableMetadataBlock_returnsCorrectSeekPoints() throws Exception {

  ExtractorInput input = buildExtractorInput("flac/bear.flac");
  // Skip to seek table block.
  input.skipFully(FlacConstants.STREAM_MARKER_SIZE + FlacConstants.STREAM_INFO_BLOCK_SIZE);
  int seekTableBlockSize = 598;
  ParsableByteArray scratch = new ParsableByteArray(seekTableBlockSize);
  input.read(scratch.data, 0, seekTableBlockSize);
  FlacStreamMetadata.SeekTable seekTable = FlacMetadataReader.readSeekTableMetadataBlock(scratch);
  assertThat(seekTable.pointOffsets[0]).isEqualTo(0);
  assertThat(seekTable.pointSampleNumbers[0]).isEqualTo(0);
  assertThat(seekTable.pointOffsets[31]).isEqualTo(160602);
  assertThat(seekTable.pointSampleNumbers[31]).isEqualTo(126976);
}