List<WaveletOperation> ops = ImmutableList.of(op, op, op);
ParticipantId author = new ParticipantId("kalman@google.com");
HashedVersion hashedVersion = HashedVersion.unsigned(0);
WaveletDelta delta = new WaveletDelta(author, hashedVersion, ops);
ProtocolWaveletDelta serialized = CoreWaveletOperationSerializer.serialize(delta);
WaveletDelta deserialized = CoreWaveletOperationSerializer.deserialize(serialized);
assertEquals(hashedVersion.getVersion(), serialized.getHashedVersion().getVersion());
assertTrue(Arrays.equals(hashedVersion.getHistoryHash(),
serialized.getHashedVersion().getHistoryHash().toByteArray()));
assertDeepEquals(delta, deserialized);
}