catch (Exception e) {
// okay
}
MockControl factoryControl = MockControl.createControl(ObjectFactory.class);
ObjectFactory mockFactory = (ObjectFactory) factoryControl.getMock();
configuration.setObjectFactory(mockFactory);
MockControl beanFactoryControl = MockControl.createNiceControl(BeanFactory.class);
BeanFactory beanFactory = (BeanFactory) beanFactoryControl.getMock();
JbpmContext context = new JbpmContext(null, mockFactory);
factoryControl.expectAndReturn(mockFactory.createObject(JbpmContext.DEFAULT_JBPM_CONTEXT_NAME), context, 3);
beanFactoryControl.replay();
factoryControl.replay();
// configuration.setBeanFactory(beanFactory);
configuration.afterPropertiesSet();