GetSnapshotsTaskRunner extends AbstractSnapshotTaskRunner { protected String buildBridgeURL() { return MessageFormat.format("{0}/snapshot?host={1}&storeId={2}", buildBridgeBaseURL(), dcHost, dcStoreId); } GetSnapshotsTaskRunner(String dcHost,
                                  String dcStoreId,
                                  String bridgeAppHost,
                                  String bridgeAppPort,
                                  String bridgeAppUser,
                                  String bridgeAppPass,
                                  StorageProvider storageProvider); @Override String getName(); @Override String performTask(String taskParameters);  }
@Test public void testBuildSnapshotURL() { replayAll(); String snapshotUrl = taskRunner.buildBridgeURL(); String expectedUrl = "http: "/bridge/snapshot?host=" + dcHost + "&storeId=" + dcStoreId; assertEquals(expectedUrl, snapshotUrl); }