@Test
public void undeploysAppCompletelyEvenOnDisposingException() throws Exception
{
addPackedAppFromResource(emptyAppDescriptor.zipPath);
TestApplicationFactory appFactory = new TestApplicationFactory(new MuleApplicationClassLoaderFactory(new MuleDomainClassLoaderRepository(), new DefaultNativeLibraryFinderFactory()));
appFactory.setFailOnDisposeApplication(true);
deploymentService.setAppFactory(appFactory);
deploymentService.start();
assertApplicationDeploymentSuccess(applicationDeploymentListener, emptyAppDescriptor.id);
Application app = findApp(emptyAppDescriptor.id, 1);