AdapterDocQueryProxyNoOpImpl implements AdapterDocQueryProxy { @AdapterDelegationEvent(beforeBuilder = AdhocQueryRequestDescriptionBuilder.class, afterReturningBuilder = AdhocQueryResponseDescriptionBuilder.class, serviceType = "Document Query", version = "LEVEL_a0") @Override public AdhocQueryResponse respondingGatewayCrossGatewayQuery(AdhocQueryRequest msg, AssertionType assertion) { LOG.debug("Using NoOp Implementation for Adapter Doc Query Service"); AdhocQueryResponse response = new AdhocQueryResponse(); response.setRegistryObjectList(new RegistryObjectListType()); response.setStatus(DocumentConstants.XDS_QUERY_RESPONSE_STATUS_SUCCESS); return response; }  @AdapterDelegationEvent(beforeBuilder = AdhocQueryRequestDescriptionBuilder.class, afterReturningBuilder = AdhocQueryResponseDescriptionBuilder.class, serviceType = "Document Query", version = "LEVEL_a0") @Override AdhocQueryResponse respondingGatewayCrossGatewayQuery(AdhocQueryRequest msg, AssertionType assertion);  }
@Test public void errorResponseHasRegistryObjectList() throws Exception { AdapterDocQueryProxyNoOpImpl impl = new AdapterDocQueryProxyNoOpImpl(); AdhocQueryResponse response = impl.respondingGatewayCrossGatewayQuery(null, null); AdhocQueryResponseAsserter.assertSchemaCompliant(response); }