public function setUp()
 {
     parent::setUp();
     $this->model = new DummyModel();
     $this->model->id = 1;
     $this->model->name = 'test name';
     $this->connection = m::mock('Nqxcode\\LuceneSearch\\Index\\Connection');
     $this->connection->shouldReceive('getIndexPath');
     $this->config = m::mock('Nqxcode\\LuceneSearch\\Model\\Config');
     $this->config->shouldReceive('primaryKeyPair')->with($this->model)->andReturn(['primary_key', 1]);
     $this->config->shouldReceive('classUidPair')->with($this->model)->andReturn(['class_uid', '12345']);
     $this->config->shouldReceive('fields')->with($this->model)->andReturn(['name' => ['boost' => 1]]);
     $this->config->shouldReceive('optionalAttributes')->andReturn(['optional_attribute1' => ['boost' => 1, 'value' => 'optional value']]);
     $this->config->shouldReceive('boost')->andReturn(1);
 }