<BUG>ResponseEntity<String> returnValue = new ResponseEntity<String>("body", responseHeaders, HttpStatus.OK);given(messageConverter.canWrite(String.class, null)).willReturn(true);given(messageConverter.getSupportedMediaTypes()).willReturn(Collections.singletonList(MediaType.TEXT_PLAIN));given(messageConverter.canWrite(String.class, MediaType.TEXT_PLAIN)).willReturn(true);</BUG><CONTEXT>long currentTime = new Date().getTime();long oneMinuteAgo  = currentTime - (1000 * 60);String etagValue = "\"deadb33f8badf00d\"";String changedEtagValue = "\"changed-etag-value\"";servletRequest.addHeader(HttpHeaders.IF_MODIFIED_SINCE, dateFormat.format(currentTime));servletRequest.addHeader(HttpHeaders.IF_NONE_MATCH, etagValue);HttpHeaders responseHeaders = new HttpHeaders();responseHeaders.setDate(HttpHeaders.LAST_MODIFIED, oneMinuteAgo);responseHeaders.set(HttpHeaders.ETAG, changedEtagValue);<extra_id_0>processor.handleReturnValue(returnValue, returnTypeResponseEntity, mavContainer, webRequest);</CONTEXT>
assertEquals(HttpStatus.NOT_MODIFIED.value(), servletResponse.getStatus());assertEquals(0, servletResponse.getContentAsByteArray().length);}private void assertResponseOkWithBody(String body) throws Exception {