@Test
public void resultRoundTrip() {

  Cell inputKeyValue =
      CellUtil.createCell(
          "key".getBytes(),
          "family".getBytes(),
          "qualifier".getBytes(),
          1200,
          Type.Put.getCode(),
          "value".getBytes());
  Result inputResult = Result.create(new Cell[] {inputKeyValue});
  FlatRow intermediateRow = transformToFlatRow(inputResult);
  Result outputRow = instance.adaptResponse(intermediateRow);
  Cell outputCell = outputRow.listCells().get(0);
  assertTrue(CellComparator.equals(inputKeyValue, outputCell));
}