public function testReadWithConditions()
{
$couchdb = new CouchDb($this->_testConfig);
$this->_query->conditions(array('id' => 12345));
$result = $couchdb->read($this->_query);
$this->assertNotEmpty($result);
$expected = '/lithium-test/12345';
$result = $couchdb->last->request->path;
$this->assertEqual($expected, $result);
$expected = '';
$result = $couchdb->last->request->queryString();
$this->assertEqual($expected, $result);
$this->_query->conditions(array('id' => 12345, 'path' => '/lithium-test/12345'));
$result = $couchdb->read($this->_query);
$this->assertNotEmpty($result);
}