Here are the examples of the java api class com.google.api.client.googleapis.testing.services.protobuf.MockGoogleProtoClient taken from open source projects.
1. CommonGoogleProtoClientRequestInitializerTest#testInitialize()
Project: google-api-java-client
File: CommonGoogleProtoClientRequestInitializerTest.java
File: CommonGoogleProtoClientRequestInitializerTest.java
public void testInitialize() throws Exception { CommonGoogleProtoClientRequestInitializer key = new CommonGoogleProtoClientRequestInitializer("foo"); MockGoogleProtoClient client = new MockGoogleProtoClient.Builder(new MockHttpTransport(), HttpTesting.SIMPLE_URL, "test/", null).setApplicationName("Test Application").build(); MyRequest request = new MyRequest(client, "GET", "", null, String.class); assertNull(request.key); key.initialize(request); assertEquals("foo", request.key); }