public void testGetVersion24() throws Exception {
  String xml=WEBAPP_24_HEADER + "</web-app>";
  WebXml webXml=WebXmlIo.parseWebXml(new ByteArrayInputStream(xml.getBytes("UTF-8")),getEntityResolver());
  assertEquals(WebXmlVersion.V2_4,webXml.getVersion());
}

public void testGetVersion24 ( ) throws Exception { String xml = WEBAPP_24_HEADER + "</web-app>" ; WebXml webXml = WebXmlIo . parseWebXml ( new ByteArrayInputStream ( xml . getBytes ( "UTF-8" ) ) , getEntityResolver ( ) ) ; assertEquals ( WebXmlVersion . V2_4 , webXml . getVersion ( ) ) ; }
tests whether a servlet api version 2 . 4 descriptor is correctly detected .
