HistoryServerClient { InputStream getConf(String jobId) throws ServerConnectionException { try { String confUrl = String.format(RETRIEVE_CONF_URL_TEMPLATE, jobId); LOGGER.info("Retrieving configuration of job '" + jobId + "' from '" + confUrl + "'"); return getContentInputStream(confUrl); } catch (IOException exception) { throw new ServerConnectionException(exception); } }    }
@Ignore @Test public void canGetConf() throws Exception { InputStream confStream = serverClient.getConf("job_1498650116199_0092"); String confString = IOUtils.toString(confStream); System.out.println(confString); }