Oh, this is a Unit test. You could always mock `Doctrine\PHPCR\ODM\Document\Generic` - thats what I tend to do.

Wat about `Resources/Stubs` ?