public function testWriteItem()
{
$item = new Item('Test content', 'my-id');
$item->setPath('index.html', Item::SNAPSHOT_PATH_RELATIVE_AFTER_CONVERT);
$item->setPath('index.html', Item::SNAPSHOT_PATH_PERMALINK);
$dw = new FilesystemDataWriter(new Filesystem(), $this->tmpDir);
$dw->write($item);
$this->assertFileExists($this->tmpDir . '/index.html');
}