Field f = http.getClass().getDeclaredField("client");
f.setAccessible(true);
OkHttpClient client = (OkHttpClient) f.get(http);
assertNotNull("ensure that OkHttpClient is used", client);
ConnectionPool p = client.getConnectionPool();
assertEquals(1, p.getConnectionCount());
assertEquals(0, p.getHttpConnectionCount());
assertEquals(1, p.getSpdyConnectionCount());
assertEquals("HTTP-draft-09/2.0", http.getLastRequestProtocol());
}