/**
  * test count
  *
  * @return void
  */
 public function testCount()
 {
     $conn = $this->conn;
     $repo = $this->repo;
     $configHandler = $this->configHandler;
     $instanceManager = $this->instanceManager;
     $request = $this->request;
     $handler = new DocumentHandler($conn, $repo, $configHandler, $instanceManager, $request);
     $instanceId = 'instanceId';
     $wheres = ['instanceId' => $instanceId];
     $configHandler->shouldReceive('get')->andReturn($this->getConfigEntity());
     $repo->shouldReceive('count')->andReturn(2);
     $result = $handler->count($wheres);
     $this->assertEquals(2, $result);
 }