private TestClassInfo createTestClassInfo(String javaFile) {
    String category = getCategory(javaFile);
    String sanitized = javaFile.replace("/", ".");

    int packageStart = sanitized.indexOf(packageToScan);
    if (packageStart >= 0) {
      sanitized = sanitized.substring(packageStart);
    }

    if (sanitized.endsWith(".java")) {
      int javaIdx = sanitized.indexOf(".java");
      sanitized = sanitized.substring(0, javaIdx);
    }

    int classIndex = sanitized.lastIndexOf(".");

    return new TestClassInfo(javaFile, category, sanitized, sanitized.substring(classIndex + 1));
  }
This class is intended as a helper to the CI StressNewTest job. Given a list of changed test java
files, it expands the list to include any subclasses and outputs a partial Gradle command line to
execute those tests depending on the 'category' of test (unit, distributed, etc.).
geode-junit/src/main/java/org/apache/geode/test/util/StressNewTestHelper.java