public void VerifyHistoryOfEd2()
        {
            var ver1 = new JoinEmbIdNamingRefEdEntity {
                Id = ed_id2, Data = "data2"
            };

            var rev1 = AuditReader().Find <JoinEmbIdNamingRefEdEntity>(ed_id2, 1);
            var rev2 = AuditReader().Find <JoinEmbIdNamingRefEdEntity>(ed_id2, 2);

            Assert.AreEqual(ver1, rev1);
            Assert.AreEqual(ver1, rev2);
        }
        protected override void Initialize()
        {
            ed_id1 = new EmbIdNaming {
                X = 10, Y = 20
            };
            ed_id2 = new EmbIdNaming {
                X = 11, Y = 21
            };
            ing_id1 = new EmbIdNaming {
                X = 12, Y = 22
            };
            var ed1 = new JoinEmbIdNamingRefEdEntity {
                Id = ed_id1, Data = "data1"
            };
            var ed2 = new JoinEmbIdNamingRefEdEntity {
                Id = ed_id2, Data = "data2"
            };
            var ing1 = new JoinEmbIdNamingRefIngEntity {
                Id = ing_id1, Data = "x", Reference = ed1
            };

            using (var tx = Session.BeginTransaction())
            {
                Session.Save(ed1);
                Session.Save(ed2);
                Session.Save(ing1);
                tx.Commit();
            }

            using (var tx = Session.BeginTransaction())
            {
                ing1.Data      = "y";
                ing1.Reference = ed2;
                tx.Commit();
            }
        }