title: Spring Data Elasticsearch - create SerachHits object from a JSON string
body: <p>I'm using Spring Data Elasticsearch v4.3.3 and I want to mock the return value of elasticsearchOperations.search() in one of my tests.
  I am looking for a way to instantiate the SearchHits object from a JSON string that contains the response (I got the internal curl response via the spring data trace).
  I found this link that shows how to do what I want with native Elasticsearch - <a href="https://kb.tomd.xyz/elasticsearch.html" rel="nofollow noreferrer">enter link description here</a></p>
  <p>Is there a way to do this for Spring Data?</p>