/** * Reads the metadata using the UCAR library and compares * its string representation with the expected one. * * @throws IOException if an I/O error occurred. * @throws DataStoreException if a logical error occurred. */ @Test public void testUCAR() throws IOException, DataStoreException { final Metadata metadata; try (Decoder input = createDecoder(TestData.NETCDF_2D_GEOGRAPHIC)) { metadata = new MetadataReader(input).read(); } compareToExpected(metadata); }