@Test
public void testMultipleCellsInMultipleFamiliesAreConverted() {

  byte[] row = dataHelper.randomData("rk-");
  byte[] family1 = dataHelper.randomData("f1");
  byte[] family2 = dataHelper.randomData("f2");
  byte[] qualifier1 = dataHelper.randomData("qual1");
  byte[] qualifier2 = dataHelper.randomData("qual2");
  byte[] value1 = dataHelper.randomData("v1");
  byte[] value2 = dataHelper.randomData("v1");
  long timestamp1 = 1L;
  long timestamp2 = 2L;
  Put hbasePut = new Put(row);
  hbasePut.addColumn(family1, qualifier1, timestamp1, value1);
  hbasePut.addColumn(family2, qualifier2, timestamp2, value2);
  MutateRowRequest request = adapt(hbasePut);
  Assert.assertArrayEquals(row, request.getRowKey().toByteArray());
  Assert.assertEquals(2, request.getMutationsCount());
  Mutation mutation1 = request.getMutations(0);
  Assert.assertEquals(MutationCase.SET_CELL, mutation1.getMutationCase());
  SetCell setCell = mutation1.getSetCell();
  Assert.assertArrayEquals(family1, setCell.getFamilyNameBytes().toByteArray());
  Assert.assertArrayEquals(qualifier1, setCell.getColumnQualifier().toByteArray());
  Assert.assertEquals(TimeUnit.MILLISECONDS.toMicros(timestamp1), setCell.getTimestampMicros());
  Assert.assertArrayEquals(value1, setCell.getValue().toByteArray());
  Mutation mutation2 = request.getMutations(1);
  SetCell setCell2 = mutation2.getSetCell();
  Assert.assertArrayEquals(family2, setCell2.getFamilyNameBytes().toByteArray());
  Assert.assertArrayEquals(qualifier2, setCell2.getColumnQualifier().toByteArray());
  Assert.assertEquals(TimeUnit.MILLISECONDS.toMicros(timestamp2), setCell2.getTimestampMicros());
  Assert.assertArrayEquals(value2, setCell2.getValue().toByteArray());
}