in src/main/java/org/apache/sling/hc/junitbridge/HealthCheckTestsProvider.java [79:90]
public Class<?> createTestClass(String testName) throws ClassNotFoundException {
// The test name is like "Health Checks(foo,bar)" and we need just 'foo,bar'
String tagString = null;
try {
tagString = testName.substring(0, testName.length() - TEST_NAME_SUFFIX.length()).substring(TEST_NAME_PREFIX.length());
} catch(Exception e) {
throw new RuntimeException("Invalid test name:" + testName);
}
JUnitTestBridge.setThreadContext(new TestBridgeContext(bundleContext, splitTags(tagString)));
return JUnitTestBridge.class;
}