function it_builds_a_form($taxonomyRepository, $taxonRepository, FormBuilderInterface $builder, DataTransformerInterface $dataTransformer, Taxonomy $taxonomy, Taxon $taxon)
 {
     $taxonomyRepository->findAll()->shouldBeCalled()->willReturn(array($taxonomy));
     $taxonRepository->getTaxonsAsList($taxonomy)->shouldBeCalled()->willReturn(array($taxon));
     $taxonomy->getId()->shouldBeCalled()->willreturn(12);
     $taxonomy->getName()->shouldBeCalled()->willReturn('taxonomy name');
     $taxon->__toString()->shouldBeCalled()->willReturn('taxon name');
     $builder->addModelTransformer(Argument::any())->shouldBeCalled();
     $builder->add(12, 'choice', Argument::withKey('choice_list'))->shouldBeCalled();
     $this->buildForm($builder, array('model_transformer' => array('class' => $dataTransformer, 'save_objects' => false), 'multiple' => true));
 }