SnapshotStatus extends AbstractSnapshotAction { @Override public String getRestMethodName() { return "GET"; } protected  SnapshotStatus(Builder builder); @Override String getRestMethodName();  }
@Test public void testSnapshotSingleName() { SnapshotStatus snapshotStatus = new SnapshotStatus.Builder(repository).addSnapshot(snapshot).build(); assertEquals("GET", snapshotStatus.getRestMethodName()); assertEquals("/_snapshot/leeseohoo/leeseola/_status", snapshotStatus.getURI(ElasticsearchVersion.UNKNOWN)); }