private void checkComment(Comments expected, Node commentNode) {
   assertTrue(commentNode.getNodeType() == Node.COMMENT_NODE);
   Comment comment = (Comment) commentNode;
   assertEquals(expected.toString(), comment.getTextContent());
 }
 private void checkComment(Comments expected, CommentSets comments, String commentKey, int index) {
   List<String> commentsList = comments.getCommentSet(commentKey);
   assertTrue(commentsList.size() > 0);
   assertTrue(commentsList.size() > index);
   assertEquals(expected.toString(), commentsList.get(index));
 }