@Test public void testGetCommentMeasures() { final String[] commentText = {"/**", " * Creates new instance.", " * @param text the lines that make up the comment.", " * @param firstCol number of the first column of the comment.", " * @param lastLine number of the last line of the comment.", " * @param lastCol number of the last column of the comment.", " */"}; final Comment comment = new Comment(commentText, 5, 49, 66); Assert.assertEquals("Invalid comment start line number", 43, comment.getStartLineNo()); Assert.assertEquals("Invalid comment start column number", 5, comment.getStartColNo()); Assert.assertEquals("Invalid comment end line number", 49, comment.getEndLineNo()); Assert.assertEquals("Invalid comment end column number", 66, comment.getEndColNo()); }