PutTemplate extends TemplateAction { @Override public String getRestMethodName() { return "PUT"; } protected  PutTemplate(Builder builder); @Override String getRestMethodName();  }
@Test public void tesstBsicUriGeneration() { PutTemplate putTemplate = new PutTemplate.Builder("sponsored_tweet", new Object()).build(); assertEquals("PUT", putTemplate.getRestMethodName()); assertEquals("_template/sponsored_tweet", putTemplate.getURI(ElasticsearchVersion.UNKNOWN)); }