/** * Tests {@link NetcdfStore#getMetadata()}. * * @throws DataStoreException if an error occurred while reading the netCDF file. */ @Test public void testGetMetadata() throws DataStoreException { final Metadata metadata; try (NetcdfStore store = create(TestData.NETCDF_2D_GEOGRAPHIC)) { metadata = store.getMetadata(); assertSame("Should be cached.", metadata, store.getMetadata()); } MetadataReaderTest.compareToExpected(metadata); }