title: Arquillian: Create a WebArchive from an existing war using ShrinkWrap
body: <p>I am trying to deploy an existing war from another maven project in Arquillian.
  I have resolved the war and have it copied to the target directory of my Arquillian project.</p>
  
  <p>I <em>try</em> to create it below:</p>
  
  <pre><code>@Deployment
  public static WebArchive createDeployment() {
  
      return (WebArchive) ShrinkWrap.create(ZipImporter.class, "MyWarToTest.war").importFrom(
              new File("target/MyWarToTest.war"));
  
  }
  </code></pre>
  
  <p>However, I am getting a class cast exception.</p>
  
  <blockquote>
    <p>Caused by: java.lang.ClassCastException:
    org.jboss.shrinkwrap.impl.base.importer.zip.ZipImporterImpl cannot be
    cast to org.jboss.shrinkwrap.api.Archive</p>
  </blockquote>
  
  <p>I am guessing that I should be trying to create the war a different way?</p>