XdsbErrorFactory { public AdhocQueryResponse errorAdhocQueryResponseNoDocumentsFound( String patientUniqueId, String intermediarySubjectNPI) { StringBuilder builder = new StringBuilder(); builder.append("No documents found for patient "); builder.append(patientUniqueId); builder.append(" authored by "); builder.append(intermediarySubjectNPI); builder.append("."); String codeContext = builder.toString(); String errorCode = "XDSRegistryError"; return createAdhocQueryResponseError(codeContext, errorCode); } XdsbErrorFactory();  XdsbErrorFactory(RegistryErrorListSetter registryErrorListSetter); RetrieveDocumentSetResponse setRetrieveDocumentSetResponseRegistryErrorListFilteredByPatientAndAuthor(
			RetrieveDocumentSetResponse response, int numRemoved,
			String patientId, String authorNPI); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseMultipleRepositoryId(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseConstructByErrorMessage(
			String errorMessage); RetrieveDocumentSetResponse errorRetrieveDocumentSetInternalServerError(); RetrieveDocumentSetResponse noClinicalDocumentFound(
			String patientId, String authorNPI); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseSchemaValidation(
			RetrieveDocumentSetResponse response, Map<String, String> errorMap); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseNotExistsOrAccessible(
			RetrieveDocumentSetRequest input); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseRepositoryNotAvailable(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseInternalPEPError(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseAccessDeniedByPDP(); RetrieveDocumentSetResponse errorRetrieveDocumentSetResponseNoConsentsFound(
			String patientUniqueId); AdhocQueryResponse errorAdhocQueryResponseConstructByErrorMessage(
			String errorMessage); AdhocQueryResponse errorAdhocQueryResponseRegistryNotAvailable(); AdhocQueryResponse errorAdhocQueryResponseAccessDeniedByPDP(); AdhocQueryResponse errorAdhocQueryResponseInternalServerError(); AdhocQueryResponse errorAdhocQueryResponseNoDocumentsFound(
			String patientUniqueId, String intermediarySubjectNPI); AdhocQueryResponse errorAdhocQueryResponseMissingParameters();  }
@Test public void testErrorAdhocQueryResponseNoDocumentsFound() throws SAXException, Throwable { String expectedResponse = fileReader .readFile("errorAdhocQueryResponseNoDocumentsFound.xml"); String patientUniqueIdMock = "patientUniqueIdMock"; String intermediarySubjectNPIMock = "intermediarySubjectNPIMock"; AdhocQueryResponse actualResponse = sut .errorAdhocQueryResponseNoDocumentsFound(patientUniqueIdMock, intermediarySubjectNPIMock); assertResponse(expectedResponse, actualResponse); }