//test the serialization and equals
DataOutputBuffer output = new DataOutputBuffer();
GossipDigest.serializer().serialize(expected, output);
DataInputBuffer input = new DataInputBuffer();
input.reset(output.getData(), output.getLength());
GossipDigest actual = GossipDigest.serializer().deserialize(input);
assertEquals(0, expected.compareTo(actual));
}
}