SearchService extends SearchableService { public JsonNode sjsSearch(SJSSearchQuery SJSSearchQuery) { if (SJSSearchQuery.sourceQuery == null && SJSSearchQuery.database == null) { throw new BadRequestException(); } Collections collections = new Collections(hubConfig.newStagingClient()); return collections.getCollections(SJSSearchQuery.sourceQuery, String.valueOf(SJSSearchQuery.count), SJSSearchQuery.database, String.valueOf(SJSSearchQuery.urisOnly)); } SearchService(HubConfig hubConfig); StringHandle search(SearchQuery searchQuery); JsonNode sjsSearch(SJSSearchQuery SJSSearchQuery); String getDoc(String database, String docUri);  }
@Test void sjsSearchUrisOnly() { sjsSearch(true); }
@Test void sjsSearchWithDoc() { sjsSearch(false); }