DeleteTemplate extends TemplateAction { @Override public String getRestMethodName() { return "DELETE"; } protected  DeleteTemplate(Builder builder); @Override String getRestMethodName();  }
@Test public void testBasicUriGeneration() { DeleteTemplate deleteTemplate = new DeleteTemplate.Builder("personal_tweet").build(); assertEquals("DELETE", deleteTemplate.getRestMethodName()); assertEquals("_template/personal_tweet", deleteTemplate.getURI(ElasticsearchVersion.UNKNOWN)); }