@Mock private HttpHeaders responseHttpHeaders;
@Before
public void setup() throws Exception {
//Add handling of text/javascript content type
final MappingJackson2HttpMessageConverter converter = new MappingJackson2HttpMessageConverter();
final List<MediaType> supportedMediaTypes = new LinkedList<MediaType>(converter.getSupportedMediaTypes());
final MediaType textJavascriptMediaType = new MediaType("text", "javascript", MappingJackson2HttpMessageConverter.DEFAULT_CHARSET);
supportedMediaTypes.add(textJavascriptMediaType);
converter.setSupportedMediaTypes(supportedMediaTypes);
restTemplate.getMessageConverters().add(converter);
this.googleSearchController.setRestOperations(restTemplate);
//Uncomment to make real requests