CloudBigtableTableConfiguration extends CloudBigtableConfiguration { @Override public Builder toBuilder() { Builder builder = new Builder(); copyConfig(builder); return builder; } CloudBigtableTableConfiguration(); protected  CloudBigtableTableConfiguration(
      ValueProvider<String> projectId,
      ValueProvider<String> instanceId,
      ValueProvider<String> tableId,
      Map<String, ValueProvider<String>> additionalConfiguration); String getTableId(); @Override Builder toBuilder(); void copyConfig(Builder builder); @Override boolean equals(Object obj); @Override void populateDisplayData(DisplayData.Builder builder); @Override void validate();  }
@Test public void testToBuilder() { CloudBigtableTableConfiguration underTest = buildConfiguration().toBuilder().withConfiguration("somekey", "somevalue").build(); CloudBigtableTableConfiguration copy = underTest.toBuilder().build(); Assert.assertNotSame(underTest, copy); Assert.assertEquals(underTest, copy); }
@Test public void testRegularAndRuntimeParametersAreEqual() { CloudBigtableTableConfiguration withRegularParameters = buildConfiguration().toBuilder().withConfiguration("somekey", "somevalue").build(); CloudBigtableTableConfiguration withRuntimeParameters = new CloudBigtableTableConfiguration.Builder() .withTableId(StaticValueProvider.of(TABLE)) .withProjectId(StaticValueProvider.of(PROJECT)) .withInstanceId(StaticValueProvider.of(INSTANCE)) .withConfiguration("somekey", StaticValueProvider.of("somevalue")) .build(); Assert.assertNotSame(withRegularParameters, withRuntimeParameters); Assert.assertEquals(withRegularParameters, withRuntimeParameters); }