NhinDocSubmissionDeferredResponseProxyWebServiceSecuredImpl implements
    NhinDocSubmissionDeferredResponseProxy { @NwhinInvocationEvent(beforeBuilder = DeferredResponseDescriptionBuilder.class, afterReturningBuilder = DeferredResponseDescriptionBuilder.class, serviceType = "Document Submission Deferred Response", version = "1.1") @Override public XDRAcknowledgementType provideAndRegisterDocumentSetBDeferredResponse11(RegistryResponseType request, AssertionType assertion, NhinTargetSystemType target) { LOG.debug("Begin provideAndRegisterDocumentSetBDeferredResponse"); XDRAcknowledgementType response = null; try { String url = getUrl(target); if (request == null) { throw new IllegalArgumentException("Request Message must be provided"); } else { ServicePortDescriptor<XDRDeferredResponsePortType> portDescriptor = new NhinDocSubmissionDeferredResponseServicePortDescriptor(); CONNECTClient<XDRDeferredResponsePortType> client = getCONNECTClientSecured(portDescriptor, url, assertion, target, NhincConstants.NHINC_XDR_RESPONSE_SERVICE_NAME); client.enableMtom(); response = (XDRAcknowledgementType) client.invokePort(XDRDeferredResponsePortType.class, "provideAndRegisterDocumentSetBDeferredResponse", request); } } catch (Exception ex) { response = getMessageGeneratorUtils().createRegistryErrorXDRAcknowledgementType(ex.getMessage()); throw new ErrorEventException(ex, response, "Unable to call Doc Submission Deferred Response"); } LOG.debug("End provideAndRegisterDocumentSetBDeferredResponse"); return response; } NhinDocSubmissionDeferredResponseProxyWebServiceSecuredImpl(); @NwhinInvocationEvent(beforeBuilder = DeferredResponseDescriptionBuilder.class, afterReturningBuilder = DeferredResponseDescriptionBuilder.class, serviceType = "Document Submission Deferred Response", version = "1.1") @Override XDRAcknowledgementType provideAndRegisterDocumentSetBDeferredResponse11(RegistryResponseType request,
        AssertionType assertion, NhinTargetSystemType target);  }
@Test public void testMtom() { NhinDocSubmissionDeferredResponseProxyWebServiceSecuredImpl impl = getImpl(); impl.provideAndRegisterDocumentSetBDeferredResponse11(request, assertion, getTarget("1.1")); verify(client).enableMtom(); }