HistoryServerClient { InputStream getAllJobs() throws ServerConnectionException { try { LOGGER.info("Retrieving all jobs from '" + RETRIEVE_ALL_JOBS_URL + "'"); return getContentInputStream(RETRIEVE_ALL_JOBS_URL); } catch (IOException exception) { throw new ServerConnectionException(exception); } }    }
@Ignore @Test public void canGetAllJobs() throws Exception { InputStream allJobsStream = serverClient.getAllJobs(); String allJobsString = IOUtils.toString(allJobsStream); System.out.println(allJobsString); }