}
@Test
public void startOnInitialised() throws Exception
{
MuleContext ctx = ctxBuilder.buildMuleContext();
ctx.initialise();
new DefaultsConfigurationBuilder().configure(ctx);
NotificationListener listener = new NotificationListener();
ctx.registerListener(listener);
ctx.start();
assertTrue(ctx.isInitialised());
assertFalse(ctx.isInitialising());
assertTrue(ctx.isStarted());
assertFalse(ctx.isDisposed());
assertFalse(ctx.isDisposing());
assertTrue("CONTEXT_STARTING notification never fired", listener.startingNotificationFired);
assertTrue("CONTEXT_STARTED notification never fired", listener.startedNotificationFired);
}