DeleteIndex extends GenericResultAbstractAction { @Override public String getRestMethodName() { return "DELETE"; } protected  DeleteIndex(Builder builder); @Override String getRestMethodName();  }
@Test public void testBasicUriGenerationWithJustIndex() { DeleteIndex delete = new DeleteIndex.Builder("twitter").build(); assertEquals("DELETE", delete.getRestMethodName()); assertEquals("twitter", delete.getURI(ElasticsearchVersion.UNKNOWN)); }
@Test public void testBasicUriGenerationWithIndexAndType() { DeleteIndex delete = new DeleteIndex.Builder("twitter").type("tweet").build(); assertEquals("DELETE", delete.getRestMethodName()); assertEquals("twitter/tweet", delete.getURI(ElasticsearchVersion.UNKNOWN)); }