RequestRestoreSnapshotTaskRunner extends AbstractSnapshotTaskRunner { protected String buildBridgeURL() { return MessageFormat.format("{0}/restore/request", buildBridgeBaseURL()); } RequestRestoreSnapshotTaskRunner(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/request"; assertEquals(expectedUrl, bridgeUrl); }