out.flush();
DataInputBuffer in = new DataInputBuffer();
in.reset(out.getData(), out.size());
keyResult.readFields(in);
valueResult.readFields(in);
assertTrue(key.compareTo(keyResult) == 0);
assertTrue(Arrays.equals(value.mutations, valueResult.mutations));
assertTrue(in.read() == -1);
}
static void assertEqualsMutations(Mutation[] a, Mutation[] b) {