@Test public void getHtmlContentAndSaveToFile() { HtmlService htmlService = new HtmlService(); String urlToConvert = "http://jessewarden.com/2008/11/agile-chronicles-1-stressful.html"; String htmlContent = htmlService.getHtmlContent(urlToConvert); File file = htmlService.saveHtmlContentToFile( htmlContent, sharedServices.getContentFolder(), "ebookContent"); Assert.assertTrue(file.exists()); }