DeleteSnapshot extends AbstractSnapshotAction { @Override public String getRestMethodName() { return "DELETE"; } protected  DeleteSnapshot(Builder builder); @Override String getRestMethodName();  }
@Test public void testSnapshot() { DeleteSnapshot deleteSnapshot = new DeleteSnapshot.Builder(repository, snapshot).build(); assertEquals("DELETE", deleteSnapshot.getRestMethodName()); assertEquals("/_snapshot/leeseohoo/leeseola", deleteSnapshot.getURI(ElasticsearchVersion.UNKNOWN)); }