NaturalLanguageUnderstanding extends BaseService { public ServiceCall<ListModelsResults> listModels(ListModelsOptions listModelsOptions) { String[] pathSegments = {"v1/models"}; RequestBuilder builder = RequestBuilder.get(RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments)); builder.query("version", versionDate); Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("natural-language-understanding", "v1", "listModels"); for (Entry<String, String> header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); } builder.header("Accept", "application/json"); if (listModelsOptions != null) {} ResponseConverter<ListModelsResults> responseConverter = ResponseConverterUtils.getValue( new com.google.gson.reflect.TypeToken<ListModelsResults>() {}.getType()); return createServiceCall(builder.build(), responseConverter); } NaturalLanguageUnderstanding(String versionDate);  NaturalLanguageUnderstanding(String versionDate, Authenticator authenticator);  NaturalLanguageUnderstanding(String versionDate, String serviceName);  NaturalLanguageUnderstanding(
      String versionDate, String serviceName, Authenticator authenticator); ServiceCall<AnalysisResults> analyze(AnalyzeOptions analyzeOptions); ServiceCall<ListModelsResults> listModels(ListModelsOptions listModelsOptions); ServiceCall<ListModelsResults> listModels(); ServiceCall<DeleteModelResults> deleteModel(DeleteModelOptions deleteModelOptions);  }
@Test public void testListModels() throws InterruptedException { server.enqueue(jsonResponse(models)); final ListModelsResults response = service.listModels().execute().getResult(); final RecordedRequest request = server.takeRequest(); assertEquals(MODELS_PATH, request.getPath()); assertEquals("GET", request.getMethod()); assertEquals(models, response); }