When including a jar of unit tests on the gradle unit test phase - how do we filter out certain test classes?

Related to my other question about how to include certain dependencies conditionally,

I’d like to include a jar, which has unit tests in it. However, I’d like to only run “some” of those tests, so i’d like to do an “include/exclude” of sorts , similar to the way we can do with individula include/exclude of source files in the compilation phase.

It appears that section “23.12.3: Test filtering” Describes this.

  1. You can filter individual methods 2) You can filter based on class name

  2. You can filter on package name

and so on.