RestoreSnapshotTaskRunner extends AbstractSnapshotTaskRunner { protected String createSpace(final String spaceId) { try { Retrier retrier = new Retrier(); return retrier.execute(new Retriable() { @Override public String retry() throws Exception { snapshotProvider.createSpace(spaceId); return spaceId; } }); } catch (Exception e) { throw new TaskException("Unable to initialize snapshot restore, " + "failed creating restore space due to: " + e.getMessage(), e); } } 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 testCreateSpace() { replayMocks(); }