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