RestoreSnapshotTaskRunner extends AbstractSnapshotTaskRunner { @Override public String getName() { return SnapshotConstants.RESTORE_SNAPSHOT_TASK_NAME; } RestoreSnapshotTaskRunner(StorageProvider snapshotProvider,
                                     SnapshotStorageProvider unwrappedSnapshotProvider,
                                     String dcHost,
                                     String dcPort,
                                     String dcStoreId,
                                     String dcSnapshotUser,
                                     String bridgeAppHost,
                                     String bridgeAppPort,
                                     String bridgeAppUser,
                                     String bridgeAppPass); @Override String getName(); @Override String performTask(String taskParameters);  }
@Test public void testGetName() { replayMocks(); assertEquals("restore-snapshot", taskRunner.getName()); }