CreateSnapshotTaskRunner extends SpaceModifyingSnapshotTaskRunner { protected String buildSnapshotURL(String snapshotId) { return MessageFormat.format("{0}/snapshot/{1}", buildBridgeBaseURL(), snapshotId); } CreateSnapshotTaskRunner(StorageProvider snapshotProvider,
                                    SnapshotStorageProvider unwrappedSnapshotProvider,
                                    String dcHost,
                                    String dcPort,
                                    String dcStoreId,
                                    String dcAccountName,
                                    String dcSnapshotUser,
                                    String bridgeAppHost,
                                    String bridgeAppPort,
                                    String bridgeAppUser,
                                    String bridgeAppPass,
                                    String bridgeMemberId); @Override String getName(); @Override String performTask(String taskParameters);  }
@Test public void testBuildSnapshotURL() { replayMocks(); String snapshotId = "snapshot-id"; String snapshotUrl = taskRunner.buildSnapshotURL(snapshotId); String expectedUrl = "http: "/bridge/snapshot/" + snapshotId; assertEquals(expectedUrl, snapshotUrl); }