PutMapping extends GenericResultAbstractAction { @Override public String getRestMethodName() { return "PUT"; } protected  PutMapping(Builder builder); @Override String getRestMethodName();  }
@Test public void testBasicUriGeneration() { PutMapping putMapping = new PutMapping.Builder("twitter", "tweet", "source").build(); assertEquals("PUT", putMapping.getRestMethodName()); assertEquals("twitter/tweet/_mapping", putMapping.getURI(ElasticsearchVersion.UNKNOWN)); }