HttpMethodConstraintElement extends HttpConstraintElement { public String getMethodName() { return methodName; } HttpMethodConstraintElement(String methodName);  HttpMethodConstraintElement(String methodName, HttpConstraintElement constraint); String getMethodName();  }
@Test void testGetMethodName() { HttpMethodConstraintElement element = new HttpMethodConstraintElement("methodName"); assertEquals("methodName", element.getMethodName()); }
@Test void testGetMethodName2() { HttpMethodConstraintElement element = new HttpMethodConstraintElement("methodName", new HttpConstraintElement()); assertEquals("methodName", element.getMethodName()); }