@Test public void testDuplicateMapping() throws Exception {
WebXml webxml=new WebXml();
ContextConfig config=new ContextConfig();
File pFile=paramClassResource("org/apache/catalina/startup/DuplicateMappingParamServlet");
assertTrue(pFile.exists());
try {
config.processAnnotationsFile(pFile,webxml,false);
fail();
}
catch ( IllegalArgumentException ex) {
}
ServletDef servletDef=webxml.getServlets().get("param");
assertNull(servletDef);
}