ReferenceDataResourceImpl implements ReferenceDataResource { @Override public String lookup(final RefDataLookupRequest refDataLookupRequest) { return referenceDataServiceProvider.get() .lookup(refDataLookupRequest); } @Inject  ReferenceDataResourceImpl(final Provider<ReferenceDataService> referenceDataServiceProvider); @Override List<RefStoreEntry> entries(final Integer limit); @Override String lookup(final RefDataLookupRequest refDataLookupRequest);  }
@Test void lookup() { LOGGER.info("Running test"); final RefDataLookupRequest request = new RefDataLookupRequest( "MyMap", "jblogss", null, List.of( new ReferenceLoader( new DocRef.Builder() .name("LoaderPipeline") .type(PipelineDoc.DOCUMENT_TYPE) .uuid(UUID.randomUUID().toString()) .build(), new DocRef.Builder() .name("RefFeed") .type(StreamTypeNames.REFERENCE) .uuid(UUID.randomUUID().toString()) .build() ) ) ); Mockito.when(referenceDataService.lookup(Mockito.any(RefDataLookupRequest.class))) .thenReturn("GBR"); doPostTest( ReferenceDataResource.LOOKUP_SUB_PATH, request, String.class, "GBR"); }