public function testPutDocument()
{
$p = new Path('/admin/messages/foo/hello.txt');
$this->r->putDocument($p, 'text/plain', 'Hello World!');
$this->assertEquals(sprintf('%s/admin/messages/foo/hello.txt', $this->tempFile), $this->r->getDocument($p));
$this->assertRegexp('/1:[a-z0-9]+/i', $this->r->getVersion($p));
}