@Test
public void testVerifyRetrySettings() throws IOException {

  configuration.set(BIGTABLE_USE_TIMEOUTS_KEY, "true");
  BigtableDataSettings dataSettings =
      ((BigtableHBaseVeneerSettings) BigtableHBaseVeneerSettings.create(configuration))
          .getDataSettings();
  BigtableDataSettings defaultDataSettings =
      BigtableDataSettings.newBuilder()
          .setProjectId("project-id")
          .setInstanceId("instance-id")
          .build();
  assertEquals(
      defaultDataSettings.getStubSettings().readRowsSettings().getRetryableCodes(),
      dataSettings.getStubSettings().readRowsSettings().getRetryableCodes());
  // Unary operation's RetrySettings & RetryCodes of retryable methods.
  assertRetriableOperation(
      defaultDataSettings.getStubSettings().readRowSettings(),
      dataSettings.getStubSettings().readRowSettings());
  assertRetriableOperation(
      defaultDataSettings.getStubSettings().mutateRowSettings(),
      dataSettings.getStubSettings().mutateRowSettings());
  assertRetriableOperation(
      defaultDataSettings.getStubSettings().sampleRowKeysSettings(),
      dataSettings.getStubSettings().sampleRowKeysSettings());
  // Non-streaming operation's verifying RetrySettings & RetryCodes of non-retryable methods.
  assertNonRetriableOperation(
      defaultDataSettings.getStubSettings().readModifyWriteRowSettings(),
      dataSettings.getStubSettings().readModifyWriteRowSettings());
  assertNonRetriableOperation(
      defaultDataSettings.getStubSettings().checkAndMutateRowSettings(),
      dataSettings.getStubSettings().checkAndMutateRowSettings());
}