public function testThreadPool()
 {
     $return = 'itsMe';
     $type = null;
     $className = 'myClassName';
     $request = $this->getMockBuilder('Elastification\\Client\\Request\\RequestInterface')->disableOriginalConstructor()->getMock();
     $this->requestRepositoryFactory->expects($this->once())->method('create')->with($this->equalTo($className), $this->equalTo(null), $this->equalTo(null), $this->equalTo($this->serializer))->willReturn($request);
     $this->repositoryClassMap->expects($this->once())->method('getClassName')->with(CatRepositoryInterface::CAT_THREAD_POOL)->willReturn($className);
     $this->client->expects($this->once())->method('send')->willReturn($return);
     $result = $this->indexRepository->threadPool();
     $this->assertSame($return, $result);
 }
 public function testThreadPool()
 {
     $result = $this->catRepository->threadPool();
     $data = $result->getData()->getGatewayValue();
     $this->assertGreaterThanOrEqual(1, $data);
 }