UpdateSettings extends IndicesSettingsAbstractAction { @Override public String getRestMethodName() { return "PUT"; } protected  UpdateSettings(Builder builder); @Override String getRestMethodName();  }
@Test public void testDefaultBehaviour() { String expectedUri = "_all/_settings"; UpdateSettings updateSettings = new UpdateSettings.Builder("").build(); assertEquals(expectedUri, updateSettings.getURI(ElasticsearchVersion.UNKNOWN)); assertEquals("", updateSettings.getData(null)); assertEquals("PUT", updateSettings.getRestMethodName()); }