JavaArchive deploymentArchive = ShrinkWrap.create(JavaArchive.class, "deployment.jar");
JavaArchive auxiliaryArchive = ShrinkWrap.create(JavaArchive.class, "auxiliary.jar");
WebArchive protocolArchive = ShrinkWrap.create(WebArchive.class, "protocol.war");
List<Archive<?>> auxiliaryArchives = new ArrayList<Archive<?>>();
auxiliaryArchives.add(auxiliaryArchive);
TestDeployment testDeployment = new TestDeployment(null, deploymentArchive,
auxiliaryArchives);
instance.process(testDeployment, protocolArchive);
assertDependencies(protocolArchive, false);