AbstractCommentRule extends AbstractJavaRule { protected String filteredCommentIn(Comment comment) { return comment.getFilteredComment(); }    }
@Test public void testFilteredCommentIn() { Token token = new Token(); token.image = ""; String filtered = testSubject.filteredCommentIn(new MultiLineComment(token)); assertEquals("multi line comment with blank lines", filtered); token.image = ""; filtered = testSubject.filteredCommentIn(new FormalComment(token)); assertEquals("a formal comment with blank lines", filtered); }