public void TestSerializationEventAssignment()
        {
            EventAssignment x1 = CreateObject <EventAssignment>().WithName("Eva").WithDimension(DimensionLength);

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

            IEventAssignment x2 = SerializeAndDeserialize(x1);

            x2.ParentContainer = C0;
            x2.ResolveChangedEntity();
            AssertForSpecs.AreEqualEventAssignment(x2, x1);
        }