InputStream webXmlStream = Thread.currentThread().getContextClassLoader()
.getResourceAsStream("org/jboss/seam/faces/test/server/projectstage/parser-test-web.xml");
assertNotNull("Cannot find web.xml for test", webXmlStream);
// parse it
WebXmlContextParameterParser parser = new WebXmlContextParameterParser();
parser.parse(webXmlStream);
// validate result
assertEquals(null, parser.getContextParameter("does not exist"));
assertEquals("23", parser.getContextParameter("org.example.SOME_PARAMETER"));
assertEquals("Development", parser.getContextParameter("javax.faces.PROJECT_STAGE"));
}