}
JavaClass javaClass = ensureJavaClass(packageName, testedClassName, JexPackage.eINSTANCE.getJavaClass());
addAll(javaClass.getSuperclasses(), superClasses);
addAll(javaClass.getSuperclasses(), superInterfaces);
javaClassTester.getTestedElements().add(javaClass);
ExercisePart part = ensureExercisePart(exercise, packageName);
if (req instanceof JUnitTest) {
((JUnitTest) req).setTestRunnable(javaClassTester);
}
req.setJavaElement(javaClassTester); // redundant?
part.getRequirements().add(req);
return req;
}