ServletSecurityElement extends HttpConstraintElement { public Collection<String> getMethodNames() { return Collections.unmodifiableCollection(methodNames); } ServletSecurityElement();  ServletSecurityElement(HttpConstraintElement constraint);  ServletSecurityElement(Collection<HttpMethodConstraintElement> methodConstraints);  ServletSecurityElement(HttpConstraintElement constraint, Collection<HttpMethodConstraintElement> methodConstraints);  ServletSecurityElement(ServletSecurity annotation); Collection<HttpMethodConstraintElement> getHttpMethodConstraints(); Collection<String> getMethodNames();  }
@Test void testGetMethodNames() { ServletSecurityElement element = new ServletSecurityElement(); assertNotNull(element.getMethodNames()); }