long startTime = System.currentTimeMillis();
String[] locations = annotation.value();
boolean ignoreNoSuchBean = annotation.ignoreNoSuchBean();
JTesterSpringContext context = contextFactory.createApplicationContext(Arrays.asList(locations),
ignoreNoSuchBean);
context.refresh();
long duration = System.currentTimeMillis() - startTime;
JTesterLogger.warn(String.format("take %d ms to init spring context for test obejct[%s]", duration,
testClazz.getName()));
beanFactory = context.getJTesterBeanFactory();
TestedObject.setSpringContext(beanFactory);
return beanFactory;
}