private function createCommandTester(ContainerInterface $container, Application $application = null)
 {
     if (null === $application) {
         $application = new Application();
     }
     $application->setAutoExit(false);
     $command = new DemoteUserCommand();
     $command->setContainer($container);
     $application->add($command);
     return new CommandTester($application->find('fos:user:demote'));
 }
 protected function interact(InputInterface $input, OutputInterface $output)
 {
     /** @var UserDiscriminatorInterface $discriminator */
     $discriminator = $this->getContainer()->get('rollerworks_multi_user.user_discriminator');
     $discriminator->setCurrentUser($input->getOption('user-system'));
     parent::interact($input, $output);
 }