public function testBuildComparisonExprNoAppropriateChildBuilder()
 {
     $ds = $this->getMock('Oro\\Bundle\\FilterBundle\\Datasource\\FilterDatasourceAdapterInterface');
     $fieldName = 'o.testField';
     $parameterName = 'param1';
     $filterName = 'testFilter';
     $inverse = true;
     $this->childBuilder1->expects($this->once())->method('supports')->with($this->identicalTo($ds))->will($this->returnValue(false));
     $this->childBuilder1->expects($this->never())->method('buildComparisonExpr');
     $this->setExpectedException('\\RuntimeException', sprintf('The "%s" datasource adapter is not supported.', get_class($ds)));
     $this->builder->buildComparisonExpr($ds, $fieldName, $parameterName, $filterName, $inverse);
 }
 /**
  * {@inheritdoc}
  */
 protected function buildComparisonExpr(FilterDatasourceAdapterInterface $ds, $comparisonType, $fieldName, $parameterName)
 {
     return $this->manyRelationBuilder->buildComparisonExpr($ds, $fieldName, $parameterName, $this->getName(), $comparisonType === ChoiceFilterType::TYPE_NOT_CONTAINS);
 }