public function testSetItem()
{
$couchdb = new CouchDb($this->_testConfig);
$expected = array('id' => 'a1', 'rev' => '1-2', 'author' => 'author 1', 'body' => 'body 1');
$data = array(array('_id' => 'a1', '_rev' => '1-2', 'author' => 'author 1', 'body' => 'body 1'));
$item = $couchdb->item($this->_query->model(), $data, array('class' => 'set'));
$this->assertCount(1, $item);
$result = $item->first()->data();
$this->assertEqual($expected, $result);
}