OpenIndex extends GenericResultAbstractAction { @Override public String getRestMethodName() { return "POST"; } protected  OpenIndex(Builder builder); @Override String getRestMethodName();  }
@Test public void testBasicUriGeneration() { OpenIndex openIndex = new OpenIndex.Builder("twitter").build(); assertEquals("POST", openIndex.getRestMethodName()); assertEquals("twitter/_open", openIndex.getURI(ElasticsearchVersion.UNKNOWN)); }