BigtableConfig implements Serializable { BigtableConfig withBigtableOptionsConfigurator( SerializableFunction<BigtableOptions.Builder, BigtableOptions.Builder> configurator) { checkArgument(configurator != null, "configurator can not be null"); return toBuilder().setBigtableOptionsConfigurator(configurator).build(); }  @Override String toString();  }
@Test public void testWithBigtableOptionsConfigurator() { assertEquals( CONFIGURATOR, config.withBigtableOptionsConfigurator(CONFIGURATOR).getBigtableOptionsConfigurator()); thrown.expect(IllegalArgumentException.class); config.withBigtableOptionsConfigurator(null); }