@Test
public void readMetadataBlock_blockToSkip_updatesReadPosition() throws Exception {

  ExtractorInput input = buildExtractorInput("flac/bear.flac");
  // Skip to padding block.
  input.skipFully(640);
  FlacStreamMetadataHolder metadataHolder = new FlacStreamMetadataHolder(buildStreamMetadata());
  FlacMetadataReader.readMetadataBlock(input, metadataHolder);
  assertThat(input.getPosition()).isGreaterThan(new Long(640));
  assertThat(input.getPeekPosition()).isEqualTo(input.getPosition());
}