@Test
public void readFrameBlockSizeSamplesFromKey_keyBetween6And7_returnsCorrectBlockSize()
    throws Exception {

  ExtractorInput input = buildExtractorInput("flac/bear_one_metadata_block.flac");
  // Skip to block size bits of last frame.
  input.skipFully(164033);
  ParsableByteArray scratch = new ParsableByteArray(2);
  input.readFully(scratch.data, 0, 2);
  int result = FlacFrameReader.readFrameBlockSizeSamplesFromKey(scratch, /* blockSizeKey= */ 7);
  assertThat(result).isEqualTo(496);
}