@Test
public void parseVorbisComments() {

  ArrayList<String> commentsList = new ArrayList<>();
  commentsList.add("Title=Song");
  commentsList.add("Artist=Singer");
  Metadata metadata =
      new FlacStreamMetadata(
              /* minBlockSizeSamples= */ 0,
              /* maxBlockSizeSamples= */ 0,
              /* minFrameSize= */ 0,
              /* maxFrameSize= */ 0,
              /* sampleRate= */ 0,
              /* channels= */ 0,
              /* bitsPerSample= */ 0,
              /* totalSamples= */ 0,
              commentsList,
              /* pictureFrames= */ new ArrayList<>())
          .getMetadataCopyWithAppendedEntriesFrom(/* other= */ null);
  assertThat(metadata.length()).isEqualTo(2);
  VorbisComment commentFrame = (VorbisComment) metadata.get(0);
  assertThat(commentFrame.key).isEqualTo("Title");
  assertThat(commentFrame.value).isEqualTo("Song");
  commentFrame = (VorbisComment) metadata.get(1);
  assertThat(commentFrame.key).isEqualTo("Artist");
  assertThat(commentFrame.value).isEqualTo("Singer");
}