test_class.declarator: webXmlWithRoles = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
                                       "<web-app id=\"WebApp_ID\" version=\"3.0\" xmlns=\"http://java.sun.com/xml/ns/j2ee\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
                                       "         xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_3_0.xsd\">\n" +
                                       "    <security-role>\n" +
                                       "        <role-name>admin</role-name>\n" +
                                       "    </security-role>\n" +
                                       "    <security-role>\n" +
                                       "        <role-name>user</role-name>\n" +
                                       "    </security-role>\n" +
                                       "</web-app>\n"
test_class.modifier: private
test_class.original_string: private String webXmlWithRoles = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n" +
                                       "<web-app id=\"WebApp_ID\" version=\"3.0\" xmlns=\"http://java.sun.com/xml/ns/j2ee\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\"\n" +
                                       "         xsi:schemaLocation=\"http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_3_0.xsd\">\n" +
                                       "    <security-role>\n" +
                                       "        <role-name>admin</role-name>\n" +
                                       "    </security-role>\n" +
                                       "    <security-role>\n" +
                                       "        <role-name>user</role-name>\n" +
                                       "    </security-role>\n" +
                                       "</web-app>\n";
test_class.type: String
test_class.var_name: webXmlWithRoles
test_class.file: everrest-core/src/test/java/org/everrest/core/tools/WebApplicationDeclaredRolesTest.java
test_class.identifier: WebApplicationDeclaredRolesTest
test_case.body: @Test
      public void parsesRolesFromWebXml() {
          ServletContext servletContext = mock(ServletContext.class);
          when(servletContext.getResourceAsStream("/WEB-INF/web.xml")).thenReturn(new ByteArrayInputStream(webXmlWithRoles.getBytes()));
          WebApplicationDeclaredRoles webApplicationDeclaredRoles = new WebApplicationDeclaredRoles(servletContext);
          assertEquals(new HashSet<>(Arrays.asList("user", "admin")), webApplicationDeclaredRoles.getDeclaredRoles());
      }
test_case.class_method_signature: WebApplicationDeclaredRolesTest.parsesRolesFromWebXml()
test_case.full_signature: @Test public void parsesRolesFromWebXml()
test_case.identifier: parsesRolesFromWebXml
test_case.invocations: mock thenReturn when getResourceAsStream getBytes assertEquals asList getDeclaredRoles
test_case.modifiers: @Test public
test_case.parameters: ()
test_case.return: void
test_case.signature: void parsesRolesFromWebXml()
focal_class.declarator: LOG = LoggerFactory.getLogger(WebApplicationDeclaredRoles.class)
focal_class.modifier: private static final
focal_class.original_string: private static final Logger LOG = LoggerFactory.getLogger(WebApplicationDeclaredRoles.class);
focal_class.type: Logger
focal_class.var_name: LOG
focal_class.declarator: declaredRoles
focal_class.modifier: private final
focal_class.original_string: private final Set<String> declaredRoles;
focal_class.type: Set<String>
focal_class.var_name: declaredRoles
focal_class.file: everrest-core/src/main/java/org/everrest/core/tools/WebApplicationDeclaredRoles.java
focal_class.identifier: WebApplicationDeclaredRoles
focal_class.class_method_signature: WebApplicationDeclaredRoles.WebApplicationDeclaredRoles(ServletContext servletContext)
focal_class.full_signature: public  WebApplicationDeclaredRoles(ServletContext servletContext)
focal_class.identifier: WebApplicationDeclaredRoles
focal_class.modifiers: public
focal_class.parameters: (ServletContext servletContext)
focal_class.signature:  WebApplicationDeclaredRoles(ServletContext servletContext)
focal_class.class_method_signature: WebApplicationDeclaredRoles.loadRoles(ServletContext servletContext, Collection<String> roles)
focal_class.full_signature: protected void loadRoles(ServletContext servletContext, Collection<String> roles)
focal_class.identifier: loadRoles
focal_class.modifiers: protected
focal_class.parameters: (ServletContext servletContext, Collection<String> roles)
focal_class.return: void
focal_class.signature: void loadRoles(ServletContext servletContext, Collection<String> roles)
focal_class.class_method_signature: WebApplicationDeclaredRoles.getDeclaredRoles()
focal_class.full_signature: public Set<String> getDeclaredRoles()
focal_class.identifier: getDeclaredRoles
focal_class.modifiers: public
focal_class.parameters: ()
focal_class.return: Set<String>
focal_class.signature: Set<String> getDeclaredRoles()
focal_class.class_method_signature: WebApplicationDeclaredRoles.createFeaturedDocumentBuilderFactory()
focal_class.full_signature: private DocumentBuilderFactory createFeaturedDocumentBuilderFactory()
focal_class.identifier: createFeaturedDocumentBuilderFactory
focal_class.modifiers: private
focal_class.parameters: ()
focal_class.return: DocumentBuilderFactory
focal_class.signature: DocumentBuilderFactory createFeaturedDocumentBuilderFactory()
focal_method.body: public Set<String> getDeclaredRoles() {
          return declaredRoles;
      }
focal_method.class_method_signature: WebApplicationDeclaredRoles.getDeclaredRoles()
focal_method.full_signature: public Set<String> getDeclaredRoles()
focal_method.identifier: getDeclaredRoles
focal_method.modifiers: public
focal_method.parameters: ()
focal_method.return: Set<String>
focal_method.signature: Set<String> getDeclaredRoles()