VlerDasDataFetchCommand { protected String constructUrl(String pid) { String domain = query.getDomain().getValue(); String url = config.getBaseUrl(); if (!url.endsWith("/")) { url += '/'; } return url + domain + "/" + pid; } VlerDasDataFetchCommand(VlerDasConfiguration config, VlerDasQuery query); void setWsClient(AbderaClient wsClient); AbderaClient getWsClient(); Document<Feed> fetchData();  }
@Test public void testConstructUrl() { String url = command.constructUrl(TEST_ICN); Assert.assertEquals(TEST_BASE_URL + "/" + TEST_DOMAIN.getValue() + "/" + TEST_ICN, url); }