### Question:
ScanCallbackLogger implements LogControl { public void onBatchScanResults(List<ScanResult> results) { if (loggingEnabled) { final String methodName = "onBatchScanResults()"; int index = 1; int max = results.size(); for (ScanResult result : results) { logger.log(String.format(LOCALE, LOG_TEMPLATE_PREFIX + "Result: %s", SPACE, methodName, index++, max, scanResultToStringMapper.asString(result))); } } } ScanCallbackLogger(@NonNull final String logTag); @VisibleForTesting  ScanCallbackLogger(@NonNull final LogEngine logEngine); void onScanResult(int callbackType,
                             ScanResult result); void onBatchScanResults(List<ScanResult> results); void onScanFailed(int errorCode); boolean isLoggingEnabled(); @Override void setLoggingEnabled(final boolean enabled);  }### Answer:
@Test public void onBatchScanResults() { final List<ScanResult> resultList = Arrays.asList( MockScanResultFactory.createScanResult(), MockScanResultFactory.createScanResult()); cut.setLoggingEnabled(false); cut.onBatchScanResults(resultList); verifyLogNotCalled(); cut.setLoggingEnabled(true); cut.onBatchScanResults(resultList); verifyLogEngine().log(anyString()); }