public void testDeployDefinitions() throws Exception {
Resource definitionLocation = new ClassPathResource("org/springmodules/workflow/jbpm31/simpleWorkflow.xml");
ProcessDefinitionFactoryBean definition = new ProcessDefinitionFactoryBean();
definition.setDefinitionLocation(definitionLocation);
definition.afterPropertiesSet();
MockControl sfCtrl = MockControl.createControl(SessionFactory.class);
SessionFactory sf = (SessionFactory) sfCtrl.getMock();
MockControl sCtrl = MockControl.createNiceControl(Session.class);