@Test
public void testLongOperationsTimeouts() throws IOException {

  String longTimeout = "10000";
  configuration.set(BigtableOptionsFactory.BIGTABLE_LONG_RPC_TIMEOUT_MS_KEY, longTimeout);
  BigtableOptions options = BigtableOptionsFactory.fromConfiguration(configuration);
  assertEquals(
      Integer.parseInt(longTimeout), options.getCallOptionsConfig().getMutateRpcTimeoutMs());
  assertEquals(
      Integer.parseInt(longTimeout), options.getCallOptionsConfig().getReadStreamRpcTimeoutMs());
  String readTimeout = "20000";
  configuration = new Configuration(false);
  configuration.set(BigtableOptionsFactory.BIGTABLE_HOST_KEY, TEST_HOST);
  configuration.set(BigtableOptionsFactory.PROJECT_ID_KEY, TEST_PROJECT_ID);
  configuration.set(BigtableOptionsFactory.INSTANCE_ID_KEY, TEST_INSTANCE_ID);
  configuration.set(BigtableOptionsFactory.BIGTABLE_MUTATE_RPC_TIMEOUT_MS_KEY, longTimeout);
  configuration.set(BigtableOptionsFactory.BIGTABLE_READ_RPC_TIMEOUT_MS_KEY, readTimeout);
  options = BigtableOptionsFactory.fromConfiguration(configuration);
  assertEquals(LONG_TIMEOUT_MS_DEFAULT, options.getCallOptionsConfig().getLongRpcTimeoutMs());
  assertEquals(
      Integer.parseInt(longTimeout), options.getCallOptionsConfig().getMutateRpcTimeoutMs());
  assertEquals(
      Integer.parseInt(readTimeout), options.getCallOptionsConfig().getReadStreamRpcTimeoutMs());
}