@Test
public void testSerialization() {

    CanCommitTransaction expected = new CanCommitTransaction(nextTransactionId(),
            DataStoreVersions.CURRENT_VERSION);
    Object serialized = expected.toSerializable();
    assertEquals("Serialized type", CanCommitTransaction.class, serialized.getClass());
    CanCommitTransaction actual = CanCommitTransaction.fromSerializable(
            SerializationUtils.clone((Serializable) serialized));
    assertEquals("getTransactionID", expected.getTransactionId(), actual.getTransactionId());
    assertEquals("getVersion", DataStoreVersions.CURRENT_VERSION, actual.getVersion());
}