VorbisUtil { public static CommentHeader readVorbisCommentHeader(ParsableByteArray headerData) throws ParserException { return readVorbisCommentHeader( headerData, true, true); } private  VorbisUtil(); static int iLog(int x); static VorbisIdHeader readVorbisIdentificationHeader(ParsableByteArray headerData); static CommentHeader readVorbisCommentHeader(ParsableByteArray headerData); static CommentHeader readVorbisCommentHeader(
      ParsableByteArray headerData, boolean hasMetadataHeader, boolean hasFramingBit); static boolean verifyVorbisHeaderCapturePattern(
      int headerType, ParsableByteArray header, boolean quiet); static Mode[] readVorbisModes(ParsableByteArray headerData, int channels);  }
@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"); }