GetMapping extends GenericResultAbstractAction { @Override public String getRestMethodName() { return "GET"; } protected  GetMapping(Builder builder); @Override String getRestMethodName();  }
@Test public void testBasicUriGeneration() { GetMapping getMapping = new GetMapping.Builder().addIndex("twitter").build(); assertEquals("GET", getMapping.getRestMethodName()); assertEquals("twitter/_mapping", getMapping.getURI(ElasticsearchVersion.UNKNOWN)); }