{
MuleContext muleContext = new DefaultMuleContextFactory().createMuleContext(new QueueManagerOnlyConfigurationBuilder());
FlowConstruct fc = new RecordingFlow("dummy", muleContext);
muleContext.getRegistry().registerFlowConstruct(fc);
muleContext.start();
muleContext.stop();
assertEquals(4, startStopOrder.size());
assertSame(rtqm, startStopOrder.get(0));
assertSame(fc, startStopOrder.get(1));
assertSame(fc, startStopOrder.get(2));
assertSame(rtqm, startStopOrder.get(3));