{
executeTestTarget();
File destFile = getProject().resolveFile("work/destfile.war");
WarArchive destWar = new DefaultWarArchive(destFile);
WebXml webXml = destWar.getWebXml();
assertNull("The web.xml should not have a version specified",
webXml.getVersion());
assertServletMapping(webXml,
"org.apache.cactus.server.ServletTestRedirector",
"/ServletRedirector");
assertJspMapping(webXml, "/jspRedirector.jsp", "/JspRedirector");
// As the deployment descriptor in the source WAR doesn't contain a
// DOCTYPE, it is assumed to be a version 2.2 descriptor. Thus it
// should not contain a definition of the filter test redirector.
// Assert that.
assertTrue("Filter test redirector should not have been defined",
!webXml.getFilterNames().hasNext());
}