PassthroughInboundDocSubmission extends AbstractInboundDocSubmission { public PassthroughInboundDocSubmission() { this(new AdapterDocSubmissionProxyObjectFactory(), new DocSubmissionAuditLogger(), DocSubmissionUtils.getInstance()); } PassthroughInboundDocSubmission();  PassthroughInboundDocSubmission(AdapterDocSubmissionProxyObjectFactory adapterFactory,
        DocSubmissionAuditLogger auditLogger, DocSubmissionUtils dsUtils); @Override RegistryResponseType processDocSubmission(ProvideAndRegisterDocumentSetRequestType body, AssertionType assertion,
        Properties webContextProperties);  }
@Test public void passthroughInboundDocSubmission() { RegistryResponseType expectedResponse = new RegistryResponseType(); AdapterDocSubmissionProxy adapterProxy = mock(AdapterDocSubmissionProxy.class); when(adapterFactory.getAdapterDocSubmissionProxy()).thenReturn(adapterProxy); when(adapterProxy.provideAndRegisterDocumentSetB(request, assertion)).thenReturn(expectedResponse); PassthroughInboundDocSubmission passthroughDocSubmission = new PassthroughInboundDocSubmission(adapterFactory, getAuditLogger(true), dsUtils); RegistryResponseType actualResponse = passthroughDocSubmission .documentRepositoryProvideAndRegisterDocumentSetB(request, assertion, webContextProperties); assertSame(expectedResponse, actualResponse); verify(mockEJBLogger).auditResponseMessage(eq(request), eq(actualResponse), eq(assertion), isNull(NhinTargetSystemType.class), eq(NhincConstants.AUDIT_LOG_INBOUND_DIRECTION), eq(NhincConstants.AUDIT_LOG_NHIN_INTERFACE), eq(Boolean.FALSE), eq(webContextProperties), eq(NhincConstants.NHINC_XDR_SERVICE_NAME), any(DocSubmissionAuditTransforms.class)); }