### Question:
DetectDominantLanguage implements ComprehendOperation { @Override public SingularResponse sendSingularRequest(@NonNull final String fieldNameAndOperation, @NonNull final String content, @NonNull final LanguageCode languageCode, @NonNull final AmazonComprehend comprehendClient) { DetectDominantLanguageRequest request = new DetectDominantLanguageRequest().withText(content); DetectDominantLanguageResult detectDominantLanguageResult = comprehendClient.detectDominantLanguage(request); return new SingularResponse(fieldNameAndOperation, new JSONObject(detectDominantLanguageResult), null); }  @Override String[] getVisualizationNameList(); @Override SingularResponse sendSingularRequest(@NonNull final String fieldNameAndOperation,
                                                @NonNull final String content,
                                                @NonNull final LanguageCode languageCode,
                                                @NonNull final AmazonComprehend comprehendClient); @Override BatchResponse sendBatchRequest(@NonNull final List<BatchFieldLocator> fieldLocatorList,
                                          @NonNull final List<String> contentList,
                                          @NonNull final LanguageCode languageCode,
                                          @NonNull final AmazonComprehend comprehendClient);  }### Answer:
@Test public void successDetectDominantLanguageCall() { when(mockComprehendClient.detectDominantLanguage(any())).thenReturn(TestConstants.getDetectDominantLanguageResult()); SingularResponse result = test.sendSingularRequest(TestConstants.FIELD_NAME, TestConstants.CUSTOMER_INGESTION_PAYLOAD_TEXT, TestConstants.LANGUAGE_CODE, mockComprehendClient); assertEquals(TestConstants.FIELD_NAME, result.getFieldNameAndOperation()); }