@Test
public void disposesCoreExtensions() throws Exception
{
List<MuleCoreExtension> extensions = new LinkedList<MuleCoreExtension>();
TestDeploymentServiceAwareExtension extension1 = mock(TestDeploymentServiceAwareExtension.class);
MuleCoreExtension extension2 = mock(MuleCoreExtension.class);
extensions.add(extension1);
extensions.add(extension2);
when(coreExtensionDiscoverer.discover()).thenReturn(extensions);
List<MuleCoreExtension> orderedExtensions = new LinkedList<MuleCoreExtension>();