public void TestSerializationEvent()
        {
            Event x1 = CreateObject <Event>().WithName("Eve").WithDimension(DimensionLength);

            x1.Formula         = CreateObject <ConstantFormula>().WithDimension(DimensionLength).WithValue(1.0);
            x1.ParentContainer = C0;

            EventAssignment ea1 = CreateObject <EventAssignment>().WithName("Eva").WithDimension(DimensionLength);

            ea1.UseAsValue = true;
            ea1.Formula    = CreateObject <ConstantFormula>().WithDimension(DimensionLength).WithValue(23.4);
            ea1.ObjectPath = ObjectPathFactory.CreateAbsoluteObjectPath(P);
            x1.AddAssignment(ea1);
            ea1.ResolveChangedEntity();

            IEvent x2 = SerializeAndDeserialize(x1);

            x2.ParentContainer = C0;

            var refResolver = new ReferencesResolver();

            refResolver.ResolveReferencesIn(x2);

            AssertForSpecs.AreEqualEvent(x2, x1);
        }