@Test
void testConstructor2() {

    HttpConstraintElement httpConstraintElement = new HttpConstraintElement(ServletSecurity.EmptyRoleSemantic.PERMIT);
    ArrayList<HttpMethodConstraintElement> methodConstraints = new ArrayList<>();
    methodConstraints.add(new HttpMethodConstraintElement("HEAD"));
    ServletSecurityElement element = new ServletSecurityElement(httpConstraintElement, methodConstraints);
    assertEquals(ServletSecurity.EmptyRoleSemantic.PERMIT, element.getEmptyRoleSemantic());
    assertNotNull(element.getHttpMethodConstraints());
    assertEquals("HEAD", element.getHttpMethodConstraints().iterator().next().getMethodName());
}