public void VerifyHistory()
        {
            var ver1 = new OptimisticLockEntity {
                Id = id, Str = "X"
            };
            var ver2 = new OptimisticLockEntity {
                Id = id, Str = "Y"
            };

            Assert.AreEqual(ver1, AuditReader().Find <OptimisticLockEntity>(id, 1));
            Assert.AreEqual(ver2, AuditReader().Find <OptimisticLockEntity>(id, 2));
        }
        protected override void Initialize()
        {
            var ole = new OptimisticLockEntity {
                Id = id, Str = "X"
            };

            using (var tx = Session.BeginTransaction())
            {
                Session.Save(ole);
                tx.Commit();
            }
            using (var tx = Session.BeginTransaction())
            {
                ole.Str = "Y";
                tx.Commit();
            }
        }