public function testExport()
{
$data = array('foo' => 'bar', 'baz' => 'dib');
$doc = new Document(compact('data') + array('exists' => false));
$expected = array('data' => array('foo' => 'bar', 'baz' => 'dib'), 'update' => array('foo' => 'bar', 'baz' => 'dib'), 'remove' => array(), 'increment' => array(), 'key' => '', 'exists' => false);
$this->assertEqual($expected, $doc->export());
}