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