@Test
public void testSingleCellIsConverted() {

  byte[] row = dataHelper.randomData("rk-");
  byte[] family = dataHelper.randomData("f");
  byte[] qualifier = dataHelper.randomData("qual");
  byte[] value = dataHelper.randomData("v1");
  long timestamp = 2L;
  Put hbasePut = new Put(row);
  hbasePut.addColumn(family, qualifier, timestamp, value);
  MutateRowRequest request = adapt(hbasePut);
  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(family, setCell.getFamilyNameBytes().toByteArray());
  Assert.assertArrayEquals(qualifier, setCell.getColumnQualifier().toByteArray());
  Assert.assertEquals(TimeUnit.MILLISECONDS.toMicros(timestamp), setCell.getTimestampMicros());
  Assert.assertArrayEquals(value, setCell.getValue().toByteArray());
}