@Test
public void undeploysDomainCompletelyEvenOnDisposingException() throws Exception
{
addPackedDomainFromResource(emptyDomainDescriptor.zipPath);
TestDomainFactory testDomainFactory = new TestDomainFactory(new MuleDomainClassLoaderRepository());
testDomainFactory.setFailOnDisposeApplication();
deploymentService.setDomainFactory(testDomainFactory);
deploymentService.start();
assertDeploymentSuccess(domainDeploymentListener, emptyDomainDescriptor.id);