RestoreSnapshotTaskRunner extends AbstractSnapshotTaskRunner { protected String buildBridgeURL() { return MessageFormat.format("{0}/restore", buildBridgeBaseURL()); } 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 testBuildBridgeURL() { replayMocks(); String bridgeUrl = taskRunner.buildBridgeURL(); String expectedUrl = "http: "/bridge/restore"; assertEquals(expectedUrl, bridgeUrl); }