@Test
public void testReadCommentHeader() throws IOException {

  byte[] data =
      TestUtil.getByteArray(
          ApplicationProvider.getApplicationContext(), "binary/vorbis/comment_header");
  ParsableByteArray headerData = new ParsableByteArray(data, data.length);
  VorbisUtil.CommentHeader commentHeader = VorbisUtil.readVorbisCommentHeader(headerData);
  assertThat(commentHeader.vendor).isEqualTo("Xiph.Org libVorbis I 20120203 (Omnipresent)");
  assertThat(commentHeader.comments).hasLength(3);
  assertThat(commentHeader.comments[0]).isEqualTo("ALBUM=äö");
  assertThat(commentHeader.comments[1]).isEqualTo("TITLE=A sample song");
  assertThat(commentHeader.comments[2]).isEqualTo("ARTIST=Google");
}