### Question:
DetectDominantLanguage implements ComprehendOperation { @Override public BatchResponse sendBatchRequest(@NonNull final List<BatchFieldLocator> fieldLocatorList, @NonNull final List<String> contentList, @NonNull final LanguageCode languageCode, @NonNull final AmazonComprehend comprehendClient) { BatchDetectDominantLanguageRequest request = new BatchDetectDominantLanguageRequest().withTextList(contentList); BatchDetectDominantLanguageResult batchDetectDominantLanguageResult = comprehendClient.batchDetectDominantLanguage(request); return new BatchResponse<>( fieldLocatorList, batchDetectDominantLanguageResult.getResultList(), batchDetectDominantLanguageResult.getErrorList(), 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 successBatchDetectDominantLanguageCall() { when(mockComprehendClient.batchDetectDominantLanguage(any(BatchDetectDominantLanguageRequest.class))) .thenReturn(mockBatchDetectLanguageResult); BatchResponse result = test.sendBatchRequest( TestConstants.FIELD_LOCATOR_LIST, TestConstants.CONTENT_LIST, TestConstants.LANGUAGE_CODE, mockComprehendClient); assertEquals(TestConstants.FIELD_LOCATOR_LIST, result.getLocatorList()); }