@Test
public void testEquals() {

  BigtableOptions options1 =
      BigtableOptions.builder()
          .setProjectId("project")
          .setInstanceId("instance")
          .setUserAgent("foo")
          .setCredentialOptions(CredentialOptions.nullCredential())
          .build();
  BigtableOptions options2 =
      BigtableOptions.builder()
          .setProjectId("project")
          .setInstanceId("instance")
          .setUserAgent("foo")
          .setCredentialOptions(CredentialOptions.nullCredential())
          .build();
  BigtableOptions options3 =
      BigtableOptions.builder()
          .setProjectId("project")
          .setInstanceId("instance")
          .setUserAgent("foo1")
          .setCredentialOptions(CredentialOptions.nullCredential())
          .build();
  BigtableOptions options4 =
      BigtableOptions.builder()
          .setProjectId("project")
          .setInstanceId("instance")
          .setUserAgent("foo1")
          .setCredentialOptions(CredentialOptions.defaultCredentials())
          .build();
  Assert.assertEquals(options1, options2);
  Assert.assertNotEquals(options1, options3);
  Assert.assertNotEquals(options1, options4);
}