Maybe we can do a poor's man dependency injection here, and have 

```php
__construct($plugin, RestfulAuthenticationInterface $auth_manager) {
  ...
  $this->authenticationManager = $auth_manager ? $auth_manager : new \RestfulAuthenticationManager();
}
``