@Test
public void testEquals() {

  CloudBigtableTableConfiguration underTest1 = buildConfiguration();
  CloudBigtableTableConfiguration underTest2 = buildConfiguration();
  CloudBigtableTableConfiguration underTest3 =
      underTest1.toBuilder().withConfiguration("somekey", "somevalue").build();
  CloudBigtableTableConfiguration underTest4 =
      underTest1.toBuilder().withProjectId("other_project").build();
  CloudBigtableConfiguration underTest5 =
      configure(new CloudBigtableConfiguration.Builder()).build();
  // Test CloudBigtableTableConfiguration that should be equal.
  Assert.assertEquals(underTest1, underTest2);
  // Test CloudBigtableTableConfiguration with different additionalConfigurations are not equal.
  Assert.assertNotEquals(underTest1, underTest3);
  // Test CloudBigtableTableConfiguration with different ProjectId are not equal.
  Assert.assertNotEquals(underTest1, underTest4);
  // Test CloudBigtableTableConfiguration is not equal to a similar CloudBigtableConfiguration.
  Assert.assertNotEquals(underTest1, underTest5);
  // Test CloudBigtableConfiguration is not equal to a similar CloudBigtableTableConfiguration.
  // (reversed order from the previous test)
  Assert.assertNotEquals(underTest5, underTest1);
}