{
List<MuleCoreExtension> extensions = new LinkedList<MuleCoreExtension>();
TestDeploymentServiceAwareExtension extension = mock(TestDeploymentServiceAwareExtension.class);
extensions.add(extension);
when(coreExtensionDiscoverer.discover()).thenReturn(extensions);
DeploymentService deploymentService = mock(DeploymentService.class);
coreExtensionManager.setDeploymentService(deploymentService);
coreExtensionManager.initialise();
verify(extension).setDeploymentService(deploymentService);