public function testInvalidEntityCondition()
{
$entity = new Record(array('model' => $this->_model, 'exists' => true));
$entity->_id = 13;
$query = new Query(compact('entity'));
$this->assertException('/No matching primary key found/', function () use($query) {
$query->conditions();
});
}