function it_should_apply_filter(Filter $specification, EntityManager $entityManager, QueryBuilder $qb, AbstractQuery $query)
{
$this->prepareEntityManagerStub($entityManager, $qb);
$this->prepareQueryBuilderStub($qb, $query);
$specification->getFilter($qb, $this->alias)->willReturn($this->expression);
$qb->andWhere($this->expression)->willReturn($qb);
$qb->where()->shouldNotBeCalled();
$this->match($specification);
}