diff --git a/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java b/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java index 439b842ee..1f76b9f40 100644 --- a/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java +++ b/httpclient/src/test/java/org/apache/http/impl/execchain/TestMainClientExec.java @@ -555,8 +555,8 @@ public class TestMainClientExec { @Override public HttpResponse answer(final InvocationOnMock invocationOnMock) throws Throwable { final Object[] args = invocationOnMock.getArguments(); - final HttpEntityEnclosingRequest request = (HttpEntityEnclosingRequest) args[0]; - request.getEntity().writeTo(new ByteArrayOutputStream()); + final HttpEntityEnclosingRequest requestEE = (HttpEntityEnclosingRequest) args[0]; + requestEE.getEntity().writeTo(new ByteArrayOutputStream()); return response1; }