public function testCreateWithoutResize()
{
$path = $this->getRootDir() . '/images/dummy.jpg';
$framework = $this->getMockBuilder('Contao\\CoreBundle\\Framework\\ContaoFramework')->disableOriginalConstructor()->getMock();
$filesAdapter = $this->getMockBuilder('Contao\\CoreBundle\\Framework\\Adapter')->disableOriginalConstructor()->getMock();
$framework->expects($this->any())->method('getAdapter')->willReturn($filesAdapter);
$imageFactory = $this->createImageFactory(null, null, null, null, $framework);
$image = $imageFactory->create($path);
$this->assertEquals($path, $image->getPath());
}