/**
  * @param AbstractTypeExtension $extension
  * @param array $options
  */
 private function finishView(AbstractTypeExtension $extension, array $options = [])
 {
     $resolver = new OptionsResolver();
     $extension->configureOptions($resolver);
     $extension->finishView($this->view->reveal(), $this->form->reveal(), $resolver->resolve($options));
 }