@Test
public void testEquals() {

  Scan scan1 = new Scan();
  Scan scan2 = new Scan(START_ROW, STOP_ROW);
  CloudBigtableScanConfiguration underTest1 = config.toBuilder().withScan(scan1).build();
  CloudBigtableScanConfiguration underTest2 = config.toBuilder().withScan(scan1).build();
  CloudBigtableScanConfiguration underTest3 = config.toBuilder().withScan(scan2).build();
  // Test CloudBigtableScanConfigurations that should be equal.
  Assert.assertEquals(underTest1, underTest2);
  // Test that CloudBigtableScanConfigurations with different scans should not be equal.
  Assert.assertNotEquals(underTest1, underTest3);
}