/**
* @test
*/
public function renameTest()
{
$fromPath = 'mockScheme1://foo/bar';
$toPath = 'mockScheme1://foo/baz';
$this->streamWrapperAdapter->expects($this->once())->method('createStreamWrapper')->with($fromPath);
$this->mockStreamWrapper->expects($this->once())->method('rename')->with($fromPath, $toPath)->will($this->returnValue(true));
$this->assertTrue($this->streamWrapperAdapter->rename($fromPath, $toPath));
}