CompareComply extends BaseService { public ServiceCall<Batches> listBatches(ListBatchesOptions listBatchesOptions) { String[] pathSegments = {"v1/batches"}; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments)); builder.query("version", versionDate); Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("compare-comply", "v1", "listBatches"); for (Entry<String, String> header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); } builder.header("Accept", "application/json"); if (listBatchesOptions != null) {} ResponseConverter<Batches> responseConverter = ResponseConverterUtils.getValue( new com.google.gson.reflect.TypeToken<Batches>() {}.getType()); return createServiceCall(builder.build(), responseConverter); } CompareComply(String versionDate);  CompareComply(String versionDate, Authenticator authenticator);  CompareComply(String versionDate, String serviceName);  CompareComply(String versionDate, String serviceName, Authenticator authenticator); ServiceCall<HTMLReturn> convertToHtml(ConvertToHtmlOptions convertToHtmlOptions); ServiceCall<ClassifyReturn> classifyElements(
      ClassifyElementsOptions classifyElementsOptions); ServiceCall<TableReturn> extractTables(ExtractTablesOptions extractTablesOptions); ServiceCall<CompareReturn> compareDocuments(
      CompareDocumentsOptions compareDocumentsOptions); ServiceCall<FeedbackReturn> addFeedback(AddFeedbackOptions addFeedbackOptions); ServiceCall<FeedbackList> listFeedback(ListFeedbackOptions listFeedbackOptions); ServiceCall<FeedbackList> listFeedback(); ServiceCall<GetFeedback> getFeedback(GetFeedbackOptions getFeedbackOptions); ServiceCall<FeedbackDeleted> deleteFeedback(DeleteFeedbackOptions deleteFeedbackOptions); ServiceCall<BatchStatus> createBatch(CreateBatchOptions createBatchOptions); ServiceCall<Batches> listBatches(ListBatchesOptions listBatchesOptions); ServiceCall<Batches> listBatches(); ServiceCall<BatchStatus> getBatch(GetBatchOptions getBatchOptions); ServiceCall<BatchStatus> updateBatch(UpdateBatchOptions updateBatchOptions);  }
@Test public void testListBatchesWithOptions() throws InterruptedException { server.enqueue(jsonResponse(batchesResponse)); ListBatchesOptions listBatchesOptions = new ListBatchesOptions.Builder().build(); Batches response = service.listBatches(listBatchesOptions).execute().getResult(); RecordedRequest request = server.takeRequest(); assertBatchesResponse(request, response); }
@Test public void testListBatchesWithoutOptions() throws InterruptedException { server.enqueue(jsonResponse(batchesResponse)); Batches response = service.listBatches().execute().getResult(); RecordedRequest request = server.takeRequest(); assertBatchesResponse(request, response); }