out.flush();
DataInputBuffer in = new DataInputBuffer();
in.reset(out.getData(), out.size());
keyResult.readFields(in);
valueResult.readFields(in);
assertTrue(key.compareTo(keyResult) == 0);
assertEquals(value.mutations, valueResult.mutations);
assertTrue(in.read() == -1);
}
@Test