/*
 * This file is part of COMPASS. It is subject to the license terms in
 * the LICENSE file found in the top-level directory of this distribution.
 * (Also available at http://www.apache.org/licenses/LICENSE-2.0.txt)
 * You may not use this file except in compliance with the License.
 */
package de.dfki.asr.compass.test.integration;

import org.jboss.arquillian.container.test.api.Deployment;
import org.jboss.arquillian.testng.Arquillian;
import org.jboss.shrinkwrap.api.spec.EnterpriseArchive;
import org.jboss.shrinkwrap.resolver.api.maven.Maven;
import static org.testng.Assert.assertTrue;
import org.testng.annotations.Test;

public class DeploymentDeployTest extends Arquillian {
	public static final String ARTIFACT =
			"de.dfki.asr.compass:compass-deployment:ear:?";

	@Deployment
	public static EnterpriseArchive getCoreCompassDeployment() {
		return Maven.configureResolverViaPlugin()
				.resolve(ARTIFACT)
				.withoutTransitivity()
				.asSingle(EnterpriseArchive.class);
	}

	@Test
	public void itWorked() {
		assertTrue(true);
	}
}

@@ -473,23 +473,117 @@
 api.
-spec.Enterprise
+ShrinkWrap;%0Aimport org.jboss.shrinkwrap.api.spec.EnterpriseArchive;%0Aimport org.jboss.shrinkwrap.api.spec.Java
 Arch
@@ -949,14 +949,144 @@
 %7B%0A%09%09
-return
+JavaArchive testWar = ShrinkWrap%0A%09%09%09%09.create(JavaArchive.class)%0A%09%09%09%09.addClass(DeploymentDeployTest.class);%0A%09%09EnterpriseArchive compass =
  Mav
@@ -1207,16 +1207,67 @@
 class);%0A
+%09%09compass.addAsLibrary(testWar);%0A%09%09return compass;%0A
 %09%7D%0A%0A%09@Te

Add the Unit Test as a Library to the EAR prior to deployment.