AutowireCapableBeanFactory beanFactory = applicationContextHolder.getApplicationContext().getAutowireCapableBeanFactory();
beanFactory.autowireBeanProperties(builder, AutowireCapableBeanFactory.AUTOWIRE_NO, false);
beanFactory.initializeBean(builder, testBuilderClass.getName());
for (Method method : ReflectionUtils.getAllDeclaredMethods(testBuilderClass)) {
CitrusTest citrusTestAnnotation = method.getAnnotation(CitrusTest.class);
if (citrusTestAnnotation != null) {
if (StringUtils.hasText(methodName)) {
if (StringUtils.hasText(citrusTestAnnotation.name())) {
if (!citrusTestAnnotation.name().equals(methodName)) {
continue;
}
} else if (!method.getName().equals(methodName)) {
continue;
}