public void GetDomainObjectReference_BeforeRegistration()
 {
     Assert.That(
         () => _loadedObjectData.GetDomainObjectReference(),
         Throws.InvalidOperationException.With.Message.EqualTo(
             "Cannot obtain a DomainObject reference for a freshly loaded object that has not yet been registered."));
 }