@Test
public void testWorkflow() throws Exception {
final ConfigurableApplicationContext context = new ClassPathXmlApplicationContext(new String[] {"transient-engine-application-context.xml", "SimpleTransientEngineTest-application-context.xml"});
final TransientScottyEngine engine = (TransientScottyEngine) context.getBean("transientEngine");
final BackChannelQueue backChannelQueue = context.getBean(BackChannelQueue.class);
assertEquals(EngineState.STARTED,engine.getEngineState());
try {
engine.run("de.scoopgmbh.copper.test.tranzient.simple.SimpleTestParentWorkflow","testData");
WorkflowResult r = backChannelQueue.dequeue(2000, TimeUnit.MILLISECONDS);
assertNotNull(r);
}
finally {
context.close();
}