### Question:
HttpServerImpl implements HttpServer { @Override public void setBufferSize(int bufferSize) { myRequestorProvider.setBufferSize(bufferSize); } HttpServerImpl(String host, String protocol, RequestorProvider requestorProvider); @Override String getHost(); @Override String getProtocol(); RequestorProvider getRequestProvider(); @Override CancellableInputStream postFile(URL postToURL, Map<String, String> metaDataParts, File fileToPost,
            ResponseValues response); @Override CancellableInputStream postFile(URL postToURL, File fileToPost, ResponseValues response); @Override Pair<String, Integer> resolveProxy(URL destination); @Override Proxy resolveProxyConfig(URL destination); @Override CancellableInputStream sendDelete(URL url, ResponseValues response); @Override CancellableInputStream sendDelete(URL url, Map<String, String> extraHeaderValues, ResponseValues response); @Override CancellableInputStream sendGet(URL url, Map<String, String> extraHeaderValues, ResponseValues response); @Override CancellableInputStream sendGet(URL url, ResponseValues response); @Override void sendHead(URL url, Map<String, String> extraHeaderValues, ResponseValues response); @Override void sendHead(URL url, ResponseValues response); @Override CancellableInputStream sendPost(URL url, InputStream postData, Map<String, String> extraHeaderValues,
            ResponseValues response, ContentType contentType); @Override CancellableInputStream sendPost(URL url, InputStream postData, ResponseValues response); @Override CancellableInputStream sendPost(URL url, InputStream postData, ResponseValues response, ContentType contentType); @Override CancellableInputStream sendPost(URL url, Map<String, String> extraHeaderValues, Map<String, String> postData,
            ResponseValues response); @Override CancellableInputStream sendPost(URL url, Map<String, String> postData, ResponseValues response); @Override void setBufferSize(int bufferSize); @Override void setTimeouts(int readTimeout, int connectTimeout);  }### Answer:
@Test public void testBufferSize() { EasyMockSupport support = new EasyMockSupport(); RequestorProvider provider = support.createMock(RequestorProvider.class); provider.setBufferSize(EasyMock.eq(1500)); support.replayAll(); HttpServerImpl server = new HttpServerImpl(null, null, provider); server.setBufferSize(1500); support.verifyAll(); }