@Test
public void testRowKeyIsSet() {

  byte[] rowKey = dataHelper.randomData("rk-1");
  RowMutations mutations = new RowMutations(rowKey);
  com.google.cloud.bigtable.data.v2.models.Mutation mutation =
      com.google.cloud.bigtable.data.v2.models.Mutation.create();
  adapter.adapt(mutations, mutation);
  MutateRowRequest result = toMutateRowRequest(rowKey, mutation);
  Assert.assertArrayEquals(rowKey, result.getRowKey().toByteArray());
}