question: public void testGetServletRunAsRole ( ) throws Exception { String xml = WEBAPP_TEST_HEADER + "" + "  <servlet>" + "    <servlet-name>s1</servlet-name>" + "    <servlet-class>sclass1</servlet-class>" + "    <run-as>" + "      <role-name>r1</role-name>" + "    </run-as>" + "  </servlet>" + "</web-app>" ; WebXml webXml = WebXmlIo . parseWebXml ( new ByteArrayInputStream ( xml . getBytes ( "UTF-8" ) ) , getEntityResolver ( ) ) ; String roleName = WebXmlUtils . getServletRunAsRoleName ( webXml , "s1" ) ; assertEquals ( "r1" , roleName ) ; }
target:  Tests that the a servlets run-as role-name can be extracted.