Пример #1
0
  /** {@inheritDoc} */
  public void testSingleElementOptionalAttributesMarshall() {
    QName qname =
        new QName(SAMLConstants.SAML20MD_NS, NameIDMappingService.DEFAULT_ELEMENT_LOCAL_NAME);
    NameIDMappingService service = (NameIDMappingService) buildXMLObject(qname);

    service.setBinding(expectedBinding);
    service.setLocation(expectedLocation);
    service.setResponseLocation(expectedResponseLocation);

    assertEquals(expectedOptionalAttributesDOM, service);
  }