public function testTestCreate()
{
$code = 500;
$previous = new \Error();
$exception = InstantiationExceptionFactory::create(new DummyFixture('foo'), $code, $previous);
$this->assertEquals('Could not instantiate fixture "foo".', $exception->getMessage());
$this->assertEquals($code, $exception->getCode());
$this->assertSame($previous, $exception->getPrevious());
}