DeleteSnapshotRepository extends AbstractSnapshotRepositoryAction { @Override public String getRestMethodName() { return "DELETE"; } protected  DeleteSnapshotRepository(Builder builder); @Override String getRestMethodName();  }
@Test public void testRepository() { String repository = "leeseohoo"; DeleteSnapshotRepository deleteSnapshotRepository = new DeleteSnapshotRepository.Builder(repository).build(); assertEquals("DELETE", deleteSnapshotRepository.getRestMethodName()); assertEquals("/_snapshot/leeseohoo", deleteSnapshotRepository.getURI(ElasticsearchVersion.UNKNOWN)); }