public function testTestCreateNewExceptionWithFactory()
{
$exception = ObjectGeneratorNotFoundExceptionFactory::createUnexpectedCall('dummyMethod');
$this->assertEquals('Expected method "dummyMethod" to be called only if it has a generator.', $exception->getMessage());
$this->assertEquals(0, $exception->getCode());
$this->assertNull($exception->getPrevious());
}