@Test
public void testVerifyVorbisHeaderCapturePatternInvalidPattern() {

  ParsableByteArray header = new ParsableByteArray(
      new byte[] {0x01, 'x', 'v', 'o', 'r', 'b', 'i', 's'});
  try {
    VorbisUtil.verifyVorbisHeaderCapturePattern(0x01, header, false);
    fail();
  } catch (ParserException e) {
    assertThat(e.getMessage()).isEqualTo("expected characters 'vorbis'");
  }
}