Refresh extends GenericResultAbstractAction { @Override public String getRestMethodName() { return "POST"; } protected  Refresh(Builder builder); @Override String getRestMethodName();  }
@Test public void testBasicUriGeneration() { Refresh refresh = new Refresh.Builder().addIndex("twitter").addIndex("myspace").build(); assertEquals("POST", refresh.getRestMethodName()); assertEquals("twitter%2Cmyspace/_refresh", refresh.getURI(ElasticsearchVersion.UNKNOWN)); }