IMemberValuePair[] annotations = JdtHelper.getAnnotationValuePairs(method, AbstractTestAnnotationsToModelConverter.JEX_ANNOTATION_NAME);
String tests = (String) JdtHelper.getAnnotationValue(annotations, JEX_TESTS_ANNOTATION_KEY, IMemberValuePair.K_STRING);
if (tests == null) {
tests = testedMethodName;
}
JavaMethodTester javaMethodTester = (JavaMethodTester) ensureJavaElement(method.getElementName(), methodTesterParent.getMembers(), JexPackage.eINSTANCE.getJavaMethodTester());
JUnitTest testReq = ensureJunitTest(javaMethodTester, tests, methodParent, reqParent);
setAnnotationFeatures(testReq, annotations, parentAnnotations);
return testReq;
}