ServletWebRequest webRequest = new ServletWebRequest(request, response);
MethodParameter returnType = new MethodParameter(this.getClass().getMethod("handle"), -1);
List<HttpMessageConverter<?>> converters = Arrays.<HttpMessageConverter<?>>asList(new ByteArrayHttpMessageConverter());
HttpEntityMethodProcessor processor = new HttpEntityMethodProcessor(converters);
processor.handleReturnValue(responseEntity, returnType, new ModelAndViewContainer(), webRequest);
assertEquals("no-cache", response.getHeader("Cache-Control"));
}