public function testGetSession() { $sess = $this->createdProperty->getSession(); $this->assertInstanceOf('PHPCR\\SessionInterface', $sess); //how to further check if we got the right session? }