CloseIndex extends GenericResultAbstractAction { @Override public String getRestMethodName() { return "POST"; } protected  CloseIndex(Builder builder); @Override String getRestMethodName();  }
@Test public void testBasicUrlGeneration() { CloseIndex closeIndex = new CloseIndex.Builder("twitter").build(); assertEquals("POST", closeIndex.getRestMethodName()); assertEquals("twitter/_close", closeIndex.getURI(ElasticsearchVersion.UNKNOWN)); }