Both, `@Nested` and plain `static` inner classes are affected. The reason seems to be https://maven.apache.org/surefire/maven-surefire-plugin/test-mojo.html#excludes