@Before
  public void setupDomain() throws Exception {

    // Create our deployments
    webArchive = ShrinkWrap.create(WebArchive.class, TEST);
    ClassLoader tccl = Thread.currentThread().getContextClassLoader();
    URL index = tccl.getResource("helloWorld/index.html");
    webArchive.addAsWebResource(index, "index.html");

    webArchive2 = ShrinkWrap.create(WebArchive.class, TEST);
    index = tccl.getResource("helloWorld/index.html");
    webArchive2.addAsWebResource(index, "index.html");
    index = tccl.getResource("helloWorld/index2.html");
    webArchive2.addAsWebResource(index, "index2.html");

    // Make versions on the filesystem for URL-based deploy and for unmanaged content testing
    tmpDir = new File("target/deployments/" + this.getClass().getSimpleName());
    new File(tmpDir, "archives").mkdirs();
    new File(tmpDir, "exploded").mkdirs();
    webArchive.as(ZipExporter.class).exportTo(new File(tmpDir, "archives/" + TEST), true);
    webArchive.as(ExplodedExporter.class).exportExploded(new File(tmpDir, "exploded"));

    // Make the jsf war to test that jsf works on the older slaves that did not have the jsf
    // subsystem
    jsfTestArchive = ShrinkWrap.create(WebArchive.class, "jsf-test.war");
    jsfTestArchive.addClass(Bean.class);
    jsfTestArchive.addAsWebResource("jsf-test/index.html");
    jsfTestArchive.addAsWebResource("jsf-test/home.xhtml");
    jsfTestArchive.addAsWebInfResource("jsf-test/WEB-INF/beans.xml");
    jsfTestArchive.addAsWebInfResource("jsf-test/WEB-INF/faces-config.xml");

    // Launch the domain
    testSupport = MixedDomainTestSuite.getSupport(this.getClass());
    confirmNoDeployments();
  }
 @AfterClass
 public static synchronized void afterClass() {
   MixedDomainTestSuite.afterClass();
 }