VisualRecognition extends BaseService { public ServiceCall<Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions) { com.ibm.cloud.sdk.core.util.Validator.notNull( deleteClassifierOptions, "deleteClassifierOptions cannot be null"); String[] pathSegments = {"v3/classifiers"}; String[] pathParameters = {deleteClassifierOptions.classifierId()}; RequestBuilder builder = RequestBuilder.delete( RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); builder.query("version", versionDate); Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("watson_vision_combined", "v3", "deleteClassifier"); 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<ClassifiedImages> classify(ClassifyOptions classifyOptions); ServiceCall<ClassifiedImages> classify(); ServiceCall<Classifier> createClassifier(CreateClassifierOptions createClassifierOptions); ServiceCall<Classifiers> listClassifiers(ListClassifiersOptions listClassifiersOptions); ServiceCall<Classifiers> listClassifiers(); ServiceCall<Classifier> getClassifier(GetClassifierOptions getClassifierOptions); ServiceCall<Classifier> updateClassifier(UpdateClassifierOptions updateClassifierOptions); ServiceCall<Void> deleteClassifier(DeleteClassifierOptions deleteClassifierOptions); ServiceCall<InputStream> getCoreMlModel(GetCoreMlModelOptions getCoreMlModelOptions); ServiceCall<Void> deleteUserData(DeleteUserDataOptions deleteUserDataOptions);  }
@Test public void testDeleteClassifier() throws IOException, InterruptedException { server.enqueue(new MockResponse().setBody("")); String class1 = "class1"; DeleteClassifierOptions options = new DeleteClassifierOptions.Builder(class1).build(); service.deleteClassifier(options).execute(); RecordedRequest request = server.takeRequest(); String path = String.format(PATH_CLASSIFIER + "?" + VERSION_KEY + "=" + VERSION, class1); assertEquals(path, request.getPath()); assertEquals("DELETE", request.getMethod()); }