AdapterHelper { public AdhocQueryResponse createErrorResponse() { AdhocQueryResponse response = new AdhocQueryResponse(); response.setRegistryObjectList(new RegistryObjectListType()); response.setStatus(DocumentConstants.XDS_QUERY_RESPONSE_STATUS_FAILURE); RegistryError registryError = new RegistryError(); registryError.setCodeContext("Processing Adapter Doc Query document query"); registryError.setErrorCode("XDSRegistryError"); registryError.setSeverity(NhincConstants.XDS_REGISTRY_ERROR_SEVERITY_ERROR); response.setRegistryErrorList(new RegistryErrorList()); response.getRegistryErrorList().getRegistryError().add(registryError); return response; }  AdhocQueryResponse createErrorResponse();  }
@Test public void errorResponseHasRegistryObjectList() throws Exception { AdhocQueryResponse response = new AdapterHelper().createErrorResponse(); AdhocQueryResponseAsserter.assertSchemaCompliant(response); }