class RemoteOauth2Service implements Oauth2Service {

    @Override
    public TokenResponse getToken(Map<String, String> headers, Parameters parameters) throws IOException {
        return this.oauth2Mapper.toTokenResponse(this.oauth2Client.getToken(headers, parameters.asMap()));
    }

    public  RemoteOauth2Service(Oauth2Client oauth2Client);

}