public static T GetWrappedDataAndCheckType <T> (DomainObjectCollectionDataDecoratorBase decorator) where T : IDomainObjectCollectionData
        {
            object data = GetWrappedData(decorator);

            Assert.That(data, Is.InstanceOf(typeof(T)));
            return((T)data);
        }
 public static IDomainObjectCollectionData GetWrappedData(DomainObjectCollectionDataDecoratorBase decorator)
 {
     return((IDomainObjectCollectionData)PrivateInvoke.GetNonPublicField(decorator, "_wrappedData"));
 }