LanguageTranslator extends BaseService { public ServiceCall<DocumentStatus> getDocumentStatus( GetDocumentStatusOptions getDocumentStatusOptions) { com.ibm.cloud.sdk.core.util.Validator.notNull( getDocumentStatusOptions, "getDocumentStatusOptions cannot be null"); String[] pathSegments = {"v3/documents"}; String[] pathParameters = {getDocumentStatusOptions.documentId()}; RequestBuilder builder = RequestBuilder.get( RequestBuilder.constructHttpUrl(getServiceUrl(), pathSegments, pathParameters)); builder.query("version", versionDate); Map<String, String> sdkHeaders = SdkCommon.getSdkHeaders("language_translator", "v3", "getDocumentStatus"); for (Entry<String, String> header : sdkHeaders.entrySet()) { builder.header(header.getKey(), header.getValue()); } builder.header("Accept", "application/json"); ResponseConverter<DocumentStatus> responseConverter = ResponseConverterUtils.getValue( new com.google.gson.reflect.TypeToken<DocumentStatus>() {}.getType()); return createServiceCall(builder.build(), responseConverter); } LanguageTranslator(String versionDate);  LanguageTranslator(String versionDate, Authenticator authenticator);  LanguageTranslator(String versionDate, String serviceName);  LanguageTranslator(String versionDate, String serviceName, Authenticator authenticator); ServiceCall<Languages> listLanguages(ListLanguagesOptions listLanguagesOptions); ServiceCall<Languages> listLanguages(); ServiceCall<TranslationResult> translate(TranslateOptions translateOptions); ServiceCall<IdentifiableLanguages> listIdentifiableLanguages(
      ListIdentifiableLanguagesOptions listIdentifiableLanguagesOptions); ServiceCall<IdentifiableLanguages> listIdentifiableLanguages(); ServiceCall<IdentifiedLanguages> identify(IdentifyOptions identifyOptions); ServiceCall<TranslationModels> listModels(ListModelsOptions listModelsOptions); ServiceCall<TranslationModels> listModels(); ServiceCall<TranslationModel> createModel(CreateModelOptions createModelOptions); ServiceCall<DeleteModelResult> deleteModel(DeleteModelOptions deleteModelOptions); ServiceCall<TranslationModel> getModel(GetModelOptions getModelOptions); ServiceCall<DocumentList> listDocuments(ListDocumentsOptions listDocumentsOptions); ServiceCall<DocumentList> listDocuments(); ServiceCall<DocumentStatus> translateDocument(
      TranslateDocumentOptions translateDocumentOptions); ServiceCall<DocumentStatus> getDocumentStatus(
      GetDocumentStatusOptions getDocumentStatusOptions); ServiceCall<Void> deleteDocument(DeleteDocumentOptions deleteDocumentOptions); ServiceCall<InputStream> getTranslatedDocument(
      GetTranslatedDocumentOptions getTranslatedDocumentOptions);  }
@Test public void testGetDocumentStatus() throws InterruptedException { server.enqueue(jsonResponse(documentStatus)); GetDocumentStatusOptions options = new GetDocumentStatusOptions.Builder().documentId("documentId").build(); DocumentStatus response = service.getDocumentStatus(options).execute().getResult(); RecordedRequest request = server.takeRequest(); assertEquals(GET, request.getMethod()); assertEquals(documentStatus.getWordCount(), response.getWordCount()); assertEquals(documentStatus.getTarget(), response.getTarget()); assertEquals(documentStatus.getStatus(), response.getStatus()); assertEquals(documentStatus.getSource(), response.getSource()); assertEquals(documentStatus.getModelId(), response.getModelId()); assertEquals(documentStatus.getFilename(), response.getFilename()); assertEquals(documentStatus.getCreated(), response.getCreated()); assertEquals(documentStatus.getCompleted(), response.getCompleted()); assertEquals(documentStatus.getCharacterCount(), response.getCharacterCount()); assertEquals(documentStatus.getBaseModelId(), response.getBaseModelId()); assertEquals(documentStatus.getDocumentId(), response.getDocumentId()); }