AdapterPatientDiscoveryDeferredReqQueueProcess implements gov.hhs.fha.nhinc.adapterpatientdiscoveryreqqueueprocess.AdapterPatientDiscoveryDeferredReqQueueProcessPortType { @Override public PatientDiscoveryDeferredReqQueueProcessResponseType processPatientDiscoveryDeferredReqQueue( PatientDiscoveryDeferredReqQueueProcessRequestType request) { return getAdapterPatientDiscoveryDeferredReqQueueProcessImpl().processPatientDiscoveryDeferredReqQueue(request, context); }  @Override PatientDiscoveryDeferredReqQueueProcessResponseType processPatientDiscoveryDeferredReqQueue(
        PatientDiscoveryDeferredReqQueueProcessRequestType request);  }
@Test public void testProcessPatientDiscoveryDeferredReqQueue() { AdapterPatientDiscoveryDeferredReqQueueProcess process = new AdapterPatientDiscoveryDeferredReqQueueProcess() { @Override protected AdapterPatientDiscoveryDeferredReqQueueProcessImpl getAdapterPatientDiscoveryDeferredReqQueueProcessImpl() { return mockImpl; } }; context.checking(new Expectations() { { oneOf(mockImpl).processPatientDiscoveryDeferredReqQueue( with(aNull(PatientDiscoveryDeferredReqQueueProcessRequestType.class)), with(aNull(javax.xml.ws.WebServiceContext.class))); will(returnValue(new PatientDiscoveryDeferredReqQueueProcessResponseType())); } }); PatientDiscoveryDeferredReqQueueProcessResponseType response = process .processPatientDiscoveryDeferredReqQueue(null); assertNotNull(response); }