@Before
public void createMocks() throws Exception
{
muleContext = mock(MuleContext.class);
when(muleContext.getStatistics()).thenReturn(new AllStatistics());
when(muleContext.getConfiguration()).thenReturn(new DefaultMuleConfiguration());
when(muleContext.getRegistry()).thenReturn(
new MuleRegistryHelper(new DefaultRegistryBroker(muleContext), muleContext));
when(muleContext.getDefaultThreadingProfile()).thenReturn(new ChainedThreadingProfile());
notificationManager = mock(ServerNotificationManager.class);