@Test
public void testConnectionKeysAreUsed() throws IOException {

  configuration.set(BigtableOptionsFactory.BIGTABLE_HOST_KEY, "data-host");
  configuration.set(BigtableOptionsFactory.BIGTABLE_ADMIN_HOST_KEY, "admin-host");
  configuration.setInt(BigtableOptionsFactory.BIGTABLE_PORT_KEY, 1234);
  configuration.setBoolean(BigtableOptionsFactory.BIGTABLE_USE_PLAINTEXT_NEGOTIATION, true);
  BigtableOptions options = BigtableOptionsFactory.fromConfiguration(configuration);
  assertEquals("data-host", options.getDataHost());
  assertEquals("admin-host", options.getAdminHost());
  assertEquals(1234, options.getPort());
  assertTrue(
      "BIGTABLE_USE_PLAINTEXT_NEGOTIATION was not propagated", options.usePlaintextNegotiation());
}