Reindex extends GenericResultAbstractAction { @Override public String getRestMethodName() { return "POST"; } Reindex(Builder builder); @Override String getData(Gson gson); @Override String getRestMethodName();  }
@Test public void testBasicUriGeneration() { Reindex reindex = new Reindex.Builder(source,dest).build(); assertEquals("POST", reindex.getRestMethodName()); assertEquals("/_reindex", reindex.getURI(ElasticsearchVersion.UNKNOWN)); }