@Test
public void forbidsUnnecessaryFinalModifier()
    throws Exception {

    final String file = "UnnecessaryFinalModifier.java";
    new PmdAssert(
        file, Matchers.is(false),
        Matchers.containsString("Unnecessary modifier 'final'")
    ).validate();
}