Running Tests in Parallel with JUnit Categories

Is it possible to integrate CircleCI test splitting (e.g. circleci tests split) with JUnit Test Categories: Categories · junit-team/junit4 Wiki · GitHub / Categories (JUnit API)

At first glance, it does not seem possible because JUnit Categories can be applied at the individual test method level, whereas the CircleCI docs indicate that tests can only be split by file.

Ideally, I want to use JUnit categories on arbitrary tests across multiple files, and then define a job that runs all tests in a given category, and splits all tests within a category across multiple runners. Is that possible?