@Test
public void testRegistryStoredQuery() {

	// Arrange
	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);
	// Act
	AdhocQueryResponse response = port.registryStoredQuery(req);
	// Assert
	assertEquals(resp.getRequestId(), response.getRequestId());
}