@Test
public void testResultWrite() throws InstantiationException,
    IllegalAccessException, IOException {

  // test simple ckv
  CKeyValue ckv = new CKeyValue(new byte[] { 0, 0, 0, 8 });
  Result r1 = new Result(ckv);
  Result ret = (Result) Utils.testReadWrite(r1);
  assertEquals(1, ret.getKeyValues().size());
  assertEquals(ckv, ret.getKeyValues().get(0));
  // test more complex ckv
  ckv = new CKeyValue(new byte[] { 1 }, new byte[] { 2 }, new byte[] { 3, 4 });
  r1 = new Result(ckv);
  ret = (Result) Utils.testReadWrite(r1);
  assertEquals(1, ret.getKeyValues().size());
  assertEquals(ckv, ret.getKeyValues().get(0));
}