@Override
  public Archive<?> generateDeployment(TestDeployment testDeployment) {

    // Arquillian generates auxiliary archives that aren't bundles
    Collection<Archive<?>> auxArchives = testDeployment.getAuxiliaryArchives();
    auxArchives.clear();

    Archive<?> appArchive = testDeployment.getApplicationArchive();
    return appArchive;
  }
 /* (non-Javadoc)
  * @see org.jboss.arquillian.spi.DeploymentPackager#generateDeployment(org.jboss.arquillian.spi.TestDeployment)
  */
 public Archive<?> generateDeployment(
     TestDeployment testDeployment, Collection<ProtocolArchiveProcessor> processors) {
   return testDeployment.getApplicationArchive();
 }