private void verifySentence(Sentence sentence, TestSentenceInfo info)
      throws LAPVerificationException {
    if (!info.text.equals(sentence.getCoveredText()))
      throw new LAPVerificationException(
          "Bad sentence text, expected \""
              + info.text
              + "\", got \""
              + sentence.getCoveredText()
              + "\"");
    if (info.begin != sentence.getBegin())
      throw new LAPVerificationException(
          "Bad sentence begin index, expected " + info.begin + ", got " + sentence.getBegin());
    if (info.end != sentence.getEnd())
      throw new LAPVerificationException(
          "Bad sentence end index, expected " + info.end + ", got " + sentence.getEnd());

    System.out.println("Verified sentence: " + info);
  }