@Test
public void forbidsUselessParentheses()
    throws Exception {

    final String file = "UselessParentheses.java";
    new PmdAssert(
        file, Matchers.is(false),
        Matchers.containsString("Useless parentheses")
    ).validate();
}