File renamed = new File(directory2, monthFiveName);
assertTrue(monthFive.renameTo(renamed));
// ok, let's create a mosaic with a single granule and check its times
URL harvestSingleURL = DataUtilities.fileToURL(directory1);
final AbstractGridFormat format = TestUtils.getFormat(harvestSingleURL);
ImageMosaicReader reader = TestUtils.getReader(harvestSingleURL, format);
try {
String[] metadataNames = reader.getMetadataNames();
assertNotNull(metadataNames);
assertEquals("true", reader.getMetadataValue("HAS_TIME_DOMAIN"));