Stats extends GenericResultAbstractAction { @Override public String getRestMethodName() { return "GET"; } protected  Stats(Builder builder); @Override String getRestMethodName();  }
@Test public void testBasicUriGeneration() { Stats stats = new Stats.Builder().addIndex("twitter").build(); assertEquals("GET", stats.getRestMethodName()); assertEquals("twitter/_stats", stats.getURI(ElasticsearchVersion.UNKNOWN)); }