IndicesExists extends GenericResultAbstractAction { @Override public String getRestMethodName() { return "HEAD"; } protected  IndicesExists(Builder builder); @Override String getRestMethodName();  }
@Test public void testBasicUriGeneration() { IndicesExists indicesExists = new IndicesExists.Builder("twitter").build(); assertEquals("HEAD", indicesExists.getRestMethodName()); assertEquals("twitter", indicesExists.getURI(ElasticsearchVersion.UNKNOWN)); }