PepPortTypeImpl implements PepPortType { @Override public AdhocQueryResponse registryStoredQuery(AdhocQueryRequest input) { return pep.registryStoredQuery(input); } PepPortTypeImpl(PolicyEnforcementPoint pep); @Override DirectEmailSendResponse directEmailSend(
			DirectEmailSendRequest parameters); @Override AdhocQueryResponse registryStoredQuery(AdhocQueryRequest input); @Override RetrieveDocumentSetResponse retrieveDocumentSet(
			RetrieveDocumentSetRequest input);  }
@Test public void testRegistryStoredQuery() { AdhocQueryRequest req = new AdhocQueryRequest(); AdhocQueryResponse resp = new AdhocQueryResponse(); resp.setRequestId(TEST_REQUEST_ID); PepService service = new PepService(wsdlURL, serviceName); PepPortType port = service.getXDSHTTPEndpoint(); when(pep.registryStoredQuery(isA(AdhocQueryRequest.class))).thenReturn( resp); AdhocQueryResponse response = port.registryStoredQuery(req); assertEquals(resp.getRequestId(), response.getRequestId()); }