coverageStore.setName("coverageStore2");
coverageStore.setWorkspace(ws);
catalog.add(coverageStore);
CoverageInfo coverage = catalog.getFactory().createCoverage();
coverage.setName("coverage");
coverage.setNativeName("nativename");
coverage.setTitle("coverage title");
coverage.setDescription("coverage description");
coverage.setAbstract("coverage abstract");
coverage.setSRS("EPSG:4326");
coverage.setNamespace(namespace);
coverage.setStore(coverageStore);
coverage
.setNativeBoundingBox(new ReferencedEnvelope(0, 0, 0, 0, DefaultGeographicCRS.WGS84));
coverage
.setLatLonBoundingBox(new ReferencedEnvelope(0, 0, 0, 0, DefaultGeographicCRS.WGS84));
coverage.setNativeFormat("nativeFormat");
coverage.getSupportedFormats().add("supportedFormat1");
coverage.getSupportedFormats().add("supportedFormat2");
coverage.setDefaultInterpolationMethod("defaultInterpolationMethod");
coverage.getInterpolationMethods().add("interpolationMethod1");
coverage.getInterpolationMethods().add("interpolationMethod2");
coverage.getRequestSRS().add("EPSG:3003");
coverage.getRequestSRS().add("EPSG:4326");
coverage.getResponseSRS().add("EPSG:42102");
catalog.add(coverage);
endTransaction();
startNewTransaction();
CoverageInfo coverage1 = catalog.getCoverage(coverage.getId());
assertNotNull(coverage1);
// assertFalse( coverage == coverage1 );
coverage = ModificationProxy.unwrap(coverage1);