public function testBadAddGrantTypeHandler()
{
$classes = ['foo' => 'AuthBucket\\Bundle\\OAuth2Bundle\\Tests\\GrantType\\FooGrantTypeHandler'];
$factory = new GrantTypeHandlerFactory($this->get('security.token_storage'), $this->get('security.encoder_factory'), $this->get('validator'), $this->get('authbucket_oauth2.model_manager.factory'), $this->get('authbucket_oauth2.token_handler.factory'), null, $classes);
}