VisualRecognition extends BaseService { public ServiceCall<Void> deleteCollection(DeleteCollectionOptions deleteCollectionOptions) { com.ibm.cloud.sdk.core.util.Validator.notNull( deleteCollectionOptions, "deleteCollectionOptions cannot be null"); String[] pathSegments = {"v4/collections"}; String[] pathParameters = {deleteCollectionOptions.collectionId()}; RequestBuilder builder = RequestBuilder.delete( RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); builder.query("version", versionDate); Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("watson_vision_combined", "v4", "deleteCollection"); for (Entry<String, String> header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); } builder.header("Accept", "application/json"); ResponseConverter<Void> responseConverter = ResponseConverterUtils.getVoid(); return createServiceCall(builder.build(), responseConverter); } VisualRecognition(String versionDate);  VisualRecognition(String versionDate, Authenticator authenticator);  VisualRecognition(String versionDate, String serviceName);  VisualRecognition(String versionDate, String serviceName, Authenticator authenticator); ServiceCall<AnalyzeResponse> analyze(AnalyzeOptions analyzeOptions); ServiceCall<Collection> createCollection(CreateCollectionOptions createCollectionOptions); ServiceCall<Collection> createCollection(); ServiceCall<CollectionsList> listCollections(
      ListCollectionsOptions listCollectionsOptions); ServiceCall<CollectionsList> listCollections(); ServiceCall<Collection> getCollection(GetCollectionOptions getCollectionOptions); ServiceCall<Collection> updateCollection(UpdateCollectionOptions updateCollectionOptions); ServiceCall<Void> deleteCollection(DeleteCollectionOptions deleteCollectionOptions); ServiceCall<InputStream> getModelFile(GetModelFileOptions getModelFileOptions); ServiceCall<ImageDetailsList> addImages(AddImagesOptions addImagesOptions); ServiceCall<ImageSummaryList> listImages(ListImagesOptions listImagesOptions); ServiceCall<ImageDetails> getImageDetails(GetImageDetailsOptions getImageDetailsOptions); ServiceCall<Void> deleteImage(DeleteImageOptions deleteImageOptions); ServiceCall<InputStream> getJpegImage(GetJpegImageOptions getJpegImageOptions); ServiceCall<ObjectMetadataList> listObjectMetadata(
      ListObjectMetadataOptions listObjectMetadataOptions); ServiceCall<UpdateObjectMetadata> updateObjectMetadata(
      UpdateObjectMetadataOptions updateObjectMetadataOptions); ServiceCall<ObjectMetadata> getObjectMetadata(
      GetObjectMetadataOptions getObjectMetadataOptions); ServiceCall<Void> deleteObject(DeleteObjectOptions deleteObjectOptions); ServiceCall<Collection> train(TrainOptions trainOptions); ServiceCall<TrainingDataObjects> addImageTrainingData(
      AddImageTrainingDataOptions addImageTrainingDataOptions); ServiceCall<TrainingEvents> getTrainingUsage(
      GetTrainingUsageOptions getTrainingUsageOptions); ServiceCall<TrainingEvents> getTrainingUsage(); ServiceCall<Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions);  }
@Test public void testDeleteCollection() throws InterruptedException { server.enqueue(new MockResponse()); DeleteCollectionOptions options = new DeleteCollectionOptions.Builder().collectionId(COLLECTION_ID).build(); service.deleteCollection(options).execute(); RecordedRequest request = server.takeRequest(); assertEquals("DELETE", request.getMethod()); }