assertEquals(CLIENT_ID, data.get("client_id"));
assertEquals(CLIENT_SECRET, data.get("client_secret"));
}
public void test_noSecret() throws Exception {
HttpRequest request = new MockHttpTransport().createRequestFactory()
.buildGetRequest(HttpTesting.SIMPLE_GENERIC_URL);
ClientParametersAuthentication auth =
new ClientParametersAuthentication(CLIENT_ID, null);
assertEquals(CLIENT_ID, auth.getClientId());
assertNull(auth.getClientSecret());