cal.set(Calendar.YEAR, cal.get(Calendar.YEAR) + 1);
long oneYearInFuture = cal.getTimeInMillis();
// Copy watertemp.zip test coverage resource in the data dir under a different name:
GeoServerResourceLoader loader = getCatalog().getResourceLoader();
File targetDir = loader.createDirectory(getDataDirectory().root(), coverageName.getPrefix()
+ File.separator + coverageName.getLocalPart());
File target = new File(targetDir, coverageName.getLocalPart() + ".zip");
loader.copyFromClassPath("org/geoserver/wms/dimension/watertemp.zip", target);
// unpack the archive