SourceFetchExtension extends AbstractFetchException { public static String fetch( String location ) throws Exception { File fetchFile = checkCache( location ); if ( fetchFile == null ) { URL url = new URL(location); fetchFile = cache(location,url.openStream()); } return toString(new FileInputStream(fetchFile)); }  static String fetch( String location ); static String toString(InputStream in); static String toString(InputStream in,String encoding); static void copy(InputStream in, OutputStream out); static void copy(Reader in, Writer out); static void copy(InputStream in,
                            OutputStream out,
                            long byteCount); static void copy(Reader in,
                            Writer out,
                            long byteCount); static int bufferSize; }
@Test public void testSourceFetch() throws Exception { SourceFetchExtension srcFetch = new SourceFetchExtension(); String src = srcFetch.fetch("https: Assert.assertNotNull(src); }