NodesShutdown extends GenericResultAbstractAction { @Override protected String buildURI(ElasticsearchVersion elasticsearchVersion) { return super.buildURI(elasticsearchVersion) + "/_nodes/" + nodes + "/_shutdown"; } protected  NodesShutdown(Builder builder); @Override String getRestMethodName(); @Override String getPathToResult();  }
@Test public void testBuildURI() throws Exception { NodesShutdown action = new NodesShutdown.Builder().build(); assertEquals("/_nodes/_all/_shutdown", action.getURI(ElasticsearchVersion.UNKNOWN)); }