public function testExpectedObjectIsReturned() { $factory = $this->getFactoryService(); if (null !== $factory) { $this->assertInstanceOf($this->getExpectedInterface(), $factory->create()); } }