Collections.singleton("resource"), null, null, null);
}
@Test
public void extractAuthentication() {
DefaultOAuth2AccessToken token = new DefaultOAuth2AccessToken("FOO");
OAuth2Authentication authentication = new OAuth2Authentication(request, userAuthentication);
token.setScope(authentication.getOAuth2Request().getScope());
Map<String, ?> map = converter.convertAccessToken(token, authentication);
assertTrue(map.containsKey(AccessTokenConverter.AUD));
assertTrue(map.containsKey(AccessTokenConverter.SCOPE));
assertTrue(map.containsKey(AccessTokenConverter.AUTHORITIES));
OAuth2Authentication extracted = converter.extractAuthentication(map);