Elasticsearch json response to SearchResponse object

We do so in our application. However, I am writing junit test and want to verify that the business logic is correct, hence I want to interrogate the SearchResponse object.
If there is better way to write unit test I would be more then happy to hear.