WCSCoverageInfoHelper { public static String getWcsDescribeCoverages(String wcsURL) throws IOException { InputStream is = null; try { is = HTTPUtils.sendPacket( new URL(wcsURL + "?SERVICE=WCS&VERSION=1.1.1&REQUEST=DescribeCoverage"), "GET"); String result = HTTPUtils.getStringFromInputStream(is); return result; } finally { if (is != null) is.close(); } }  static WCSCoverageInfo calculateWCSCoverageInfo(
            String wfsURL, String dataStore, String gridLowerCorner, String gridUpperCorner,
            String crs, String gridOffsets, String dataTypeString); static String getWcsDescribeCoverages(String wcsURL);  }
@Test public void getWcsDescribeCoveragesWithBogusURLTest() { String result = null; try { result = WCSCoverageInfoHelper.getWcsDescribeCoverages("https: } catch (IOException ex) { assertThat(ex, is(instanceOf(UnknownHostException.class))); } assertThat(result, is(nullValue())); }