@Test
public void testUnsetTimestampsAreNotPopulated() {

  PutAdapter adapter = new PutAdapter(-1, false);
  byte[] row = dataHelper.randomData("rk-");
  byte[] family1 = dataHelper.randomData("f1");
  byte[] qualifier1 = dataHelper.randomData("qual1");
  byte[] value1 = dataHelper.randomData("v1");
  Put hbasePut = new Put(row).addColumn(family1, qualifier1, value1);
  com.google.cloud.bigtable.data.v2.models.Mutation unsafeMutation =
      com.google.cloud.bigtable.data.v2.models.Mutation.createUnsafe();
  adapter.adapt(hbasePut, unsafeMutation);
  RowMutation rowMutation =
      RowMutation.create(TABLE_ID, ByteString.copyFrom(hbasePut.getRow()), unsafeMutation);
  MutateRowRequest request = rowMutation.toProto(REQUEST_CONTEXT);
  Assert.assertArrayEquals(row, request.getRowKey().toByteArray());
  Assert.assertEquals(1, request.getMutationsCount());
  Mutation mutation = request.getMutations(0);
  Assert.assertEquals(MutationCase.SET_CELL, mutation.getMutationCase());
  SetCell setCell = mutation.getSetCell();
  Assert.assertArrayEquals(family1, setCell.getFamilyNameBytes().toByteArray());
  Assert.assertArrayEquals(qualifier1, setCell.getColumnQualifier().toByteArray());
  Assert.assertEquals(-1, setCell.getTimestampMicros());
  Assert.assertArrayEquals(value1, setCell.getValue().toByteArray());
}