@Test
public void testLogRetriesExhaustedWithDetailsException() {

  // Make sure that the logging doesn't have any exceptions. The details can be manually verified.
  // TODO: add a mock logger to confirm that the logging is correct.
  Logger log = LoggerFactory.getLogger(getClass());
  List<Throwable> exceptions = new ArrayList<>();
  List<Row> actions = new ArrayList<>();
  List<String> hostnameAndPort = new ArrayList<>();
  for (int i = 0; i < 5; i++) {
    exceptions.add(Status.CANCELLED.asException());
    actions.add(new Get(RandomStringUtils.randomAlphabetic(8).getBytes()));
    hostnameAndPort.add("");
  }
  AbstractCloudBigtableTableDoFn.logRetriesExhaustedWithDetailsException(
      log, null, new RetriesExhaustedWithDetailsException(exceptions, actions, hostnameAndPort));
}