private void testParamDoc(String expected, String paramName, List<String> inputs) {
final JavaDocParser parser = new JavaDocParser();
final List<JavaComment> outputs = new ArrayList<JavaComment>(inputs.size());
final CommentProcessor commentProcessor = new CommentProcessor();
for (String input : inputs) {
final JavaComment comment = parser.parse(new StringReader(input));
outputs.add(comment);
}
final List<JavaComment> paramDoc = commentProcessor.paramDoc(paramName, outputs);
final String actual = ASTPrinter.printComments("", paramDoc);
assertEquals(expected, actual);