public void GetOrLoadCollectionQueryResult()
        {
            _persistenceStrategyMock
            .Expect(mock => mock.ExecuteCollectionQuery(_fakeQuery, _loadedObjectDataProviderStub))
            .Return(new[] { _loadedObjectDataStub1, _loadedObjectDataStub2 });
            _loadedObjectDataRegistrationAgentMock
            .Expect(mock => mock.RegisterIfRequired(
                        Arg <IEnumerable <ILoadedObjectData> > .List.Equal(new[] { _loadedObjectDataStub1, _loadedObjectDataStub2 }),
                        Arg.Is(true)));

            _mockRepository.ReplayAll();

            var result = _objectLoader.GetOrLoadCollectionQueryResult(_fakeQuery);

            _mockRepository.VerifyAll();
            Assert.That(result, Is.EqualTo(new[] { _loadedObjectDataStub1, _loadedObjectDataStub2 }));
        }