Fix a bug in OAuth2PermissionEvaluator caused by passing wrong parameters; improve test mocking to mock one bean per class.