AdapterComponentDocRepositoryOrchImpl { protected void retrieveDocuments(boolean repositoryIdMatched, List<String> documentUniqueIds, RetrieveDocumentSetResponseType response, String homeCommunityId, RegistryErrorList regerrList) { if (repositoryIdMatched) { DocumentQueryParams params = new DocumentQueryParams(); params.setDocumentUniqueId(documentUniqueIds); DocumentService service = getDocumentService(); List<DocumentMetadata> docs = service.documentQuery(params); loadDocumentResponses(response, docs, homeCommunityId, documentUniqueIds, regerrList); } } AdapterComponentDocRepositoryOrchImpl(); DocumentService getDocumentService(); LargeFileUtils getLargeFileUtils(); UTCDateUtil getDateUtil(); RetrieveDocumentSetResponseType documentRepositoryRetrieveDocumentSet(RetrieveDocumentSetRequestType body); RegistryResponseType registerDocumentSet(RegisterDocumentSetRequestType body); RegistryResponseType documentRepositoryProvideAndRegisterDocumentSet(
        ProvideAndRegisterDocumentSetRequestType body); DocumentMetadata saveExtrinsicObject(ExtrinsicObjectType extrinsicObject, RegistryErrorList errorList,
        Map<String, DataHandler> docMap, boolean hasReplacementRequest);  }
@Test public void testRetrieveDocuments_RepositoryIdMatched() { AdapterComponentDocRepositoryOrchImpl docRepo = new AdapterComponentDocRepositoryOrchImpl() { @Override protected void loadDocumentResponses(RetrieveDocumentSetResponseType response, List<DocumentMetadata> docs, String homeCommunityId, List<String> documentUniqueId, RegistryErrorList regerrList) { assertTrue(true); } @Override public DocumentService getDocumentService() { return docService; } }; boolean repositoryIdMatched = true; docRepo.retrieveDocuments(repositoryIdMatched, null, null, null, null); verify(docService).documentQuery(Mockito.isA(DocumentQueryParams.class)); }