@Test
void searchRequest() {

  request.getSourceBuilder().query(QueryBuilders.termQuery("name", "John"));
  assertEquals(
      new SearchRequest()
          .indices("test")
          .source(new SearchSourceBuilder()
              .timeout(ElasticsearchQueryRequest.DEFAULT_QUERY_TIMEOUT)
              .from(0)
              .size(200)
              .query(QueryBuilders.termQuery("name", "John"))),
      request.searchRequest());
}