@Test public void testOpenUrlBzip() throws Exception { Main.initApplicationPreferences(); final BufferedReader x = Utils.openURLReaderAndDecompress( new URL("http://www.openstreetmap.org/trace/785544/data"), true); Assert.assertTrue(x.readLine().startsWith("<?xml version=")); x.close(); }