loadConfiguration("org/mule/test/integration/exceptions/when-without-choice-in-rollback-es.xml");
}
private void loadConfiguration(String configuration) throws MuleException, InterruptedException
{
MuleContextFactory muleContextFactory = new DefaultMuleContextFactory();
List<ConfigurationBuilder> builders = new ArrayList<ConfigurationBuilder>();
builders.add(new SpringXmlConfigurationBuilder(configuration));
MuleContextBuilder contextBuilder = new DefaultMuleContextBuilder();
MuleContext muleContext = muleContextFactory.createMuleContext(builders, contextBuilder);
final AtomicReference<Latch> contextStartedLatch = new AtomicReference<Latch>();
contextStartedLatch.set(new Latch());
muleContext.registerListener(new MuleContextNotificationListener<MuleContextNotification>()
{
@Override