MultiSearch extends AbstractAction<MultiSearchResult> { @Override public String getRestMethodName() { return "POST"; } protected  MultiSearch(Builder builder); @Override MultiSearchResult createNewElasticSearchResult(String responseBody, int statusCode, String reasonPhrase, Gson gson); @Override String getRestMethodName(); @Override String getData(Gson gson); @Override int hashCode(); @Override boolean equals(Object obj);  }
@Test public void multiSearchHasCorrectContentType() throws JSONException { Search search = new Search.Builder("").build(); MultiSearch multiSearch = new MultiSearch.Builder(search).build(); assertEquals("POST", multiSearch.getRestMethodName()); assertEquals("/_msearch", multiSearch.getURI(ElasticsearchVersion.UNKNOWN)); assertEquals("application/x-ndjson", multiSearch.getHeader("Content-Type")); }