ClientParametersAuthentication auth =
new ClientParametersAuthentication(CLIENT_ID, CLIENT_SECRET);
assertEquals(CLIENT_ID, auth.getClientId());
assertEquals(CLIENT_SECRET, auth.getClientSecret());
auth.intercept(request);
UrlEncodedContent content = (UrlEncodedContent) request.getContent();
@SuppressWarnings("unchecked")
Map<String, ?> data = (Map<String, ?>) content.getData();
assertEquals(CLIENT_ID, data.get("client_id"));
assertEquals(CLIENT_SECRET, data.get("client_secret"));
}