@Test
public void readMetadataBlock_updatesReadPositionAndAlignsPeekPosition() throws Exception {

  ExtractorInput input = buildExtractorInput("flac/bear.flac");
  input.skipFully(FlacConstants.STREAM_MARKER_SIZE);
  // Advance peek position after metadata block.
  input.advancePeekPosition(FlacConstants.STREAM_INFO_BLOCK_SIZE + 1);
  FlacMetadataReader.readMetadataBlock(
      input, new FlacStreamMetadataHolder(/* flacStreamMetadata= */ null));
  assertThat(input.getPosition()).isNotEqualTo(0);
  assertThat(input.getPeekPosition()).isEqualTo(input.getPosition());
}