if (bundle == null && module == null)
throw new IllegalStateException("Cannot determine deployment type: " + depUnit);
Class<?> testClass;
if (bundle != null) {
testClass = bundle.loadClass(className);
BundleAssociation.setBundle(bundle);
} else {
testClass = module.getClassLoader().loadClass(className);
}