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