@Test
public void testSettingRetryOptions() throws IOException {

  configuration.set(BigtableOptionsFactory.ENABLE_GRPC_RETRIES_KEY, "false");
  configuration.set(BigtableOptionsFactory.ENABLE_GRPC_RETRY_DEADLINEEXCEEDED_KEY, "false");
  configuration.set(BigtableOptionsFactory.MAX_ELAPSED_BACKOFF_MILLIS_KEY, "111");
  configuration.set(BigtableOptionsFactory.READ_PARTIAL_ROW_TIMEOUT_MS, "123");
  RetryOptions retryOptions =
      BigtableOptionsFactory.fromConfiguration(configuration).getRetryOptions();
  assertEquals(false, retryOptions.enableRetries());
  assertEquals(false, retryOptions.retryOnDeadlineExceeded());
  assertEquals(111, retryOptions.getMaxElapsedBackoffMillis());
  assertEquals(123, retryOptions.getReadPartialRowTimeoutMillis());
}