@Test
public void testSingleIncrement() {

  byte[] rowKey = dataHelper.randomData("rk1-");
  byte[] family = Bytes.toBytes("family");
  byte[] qualifier = Bytes.toBytes("qualifier");
  long amount = 1234;
  Increment incr = new Increment(rowKey);
  incr.addColumn(family, qualifier, amount);
  ReadModifyWriteRow readModifyWriteRow =
      ReadModifyWriteRow.create(TABLE_ID, ByteString.copyFrom(rowKey));
  incrementAdapter.adapt(incr, readModifyWriteRow);
  ReadModifyWriteRowRequest requestBuilder = readModifyWriteRow.toProto(requestContext);
  Assert.assertEquals(1, requestBuilder.getRulesCount());
  ReadModifyWriteRule rule = requestBuilder.getRules(0);
  Assert.assertEquals("qualifier", rule.getColumnQualifier().toStringUtf8());
  Assert.assertEquals("family", rule.getFamilyName());
  Assert.assertEquals(amount, rule.getIncrementAmount());
}