ModifyAliases extends GenericResultAbstractAction { @Override public String getRestMethodName() { return "POST"; } protected  ModifyAliases(Builder builder); @Override String getRestMethodName();  }
@Test public void testBasicUriGeneration() { ModifyAliases modifyAliases = new ModifyAliases.Builder(addMapping).build(); assertEquals("POST", modifyAliases.getRestMethodName()); assertEquals("/_aliases", modifyAliases.getURI(ElasticsearchVersion.UNKNOWN)); }