Is there a way to exclude classes from PMD rule by class name pattern?

I'm looking for sth like:

```
<rule ref="rulesets/java/coupling.xml/ExcessiveImports">
    <exclude-pattern>.*Test\.class</exclude-pattern>
</rule>

```

I'm aware of violationSuppressXPath approach but I find it too ugly/complex.

Thanks!