return Channels.newChannel(new ByteArrayInputStream(hiddenEntity.getBytes()));
}
};
responseMock.setBody(BodyMatcher.eqBody(body));
responseMock.addHeader(HeaderName.CONTENT_TYPE, "test/encoded-buffer");
responseMock.setHeader(HeaderName.CONTENT_LENGTH, (long)entity.length());
responseMock.setResponseStatus(ResponseStatus.SUCCESS);
expect(requestMock.getMethod()).andReturn(Method.GET);
RequestURI requestURI = EasyMock.createNiceMock(RequestURI.class);
expect(requestURI.getPath()).andReturn("/");