### Question:
ArcL3FileType implements FileType { @Override public Date parseDate(String filename) throws ParseException { final String dateString = filename.substring(FILENAME_DATE_OFFSET, FILENAME_DATE_OFFSET + 8); return TimeUtil.parseInsituFileNameDateFormat(dateString); }  @Override Date parseDate(String filename); @Override String getRdac(); @Override String getFilenameRegex(); @Override GridDef getGridDef(); @Override Date readDate(NetcdfFile datafile); @Override AggregationContext readSourceGrids(NetcdfFile datafile, SstDepth sstDepth,
                                              AggregationContext context); @Override Variable[] addResultVariables(NetcdfFileWriteable datafile, Dimension[] dims, SstDepth sstDepth); @Override AggregationFactory<SameMonthAggregation<AggregationCell>> getSameMonthAggregationFactory(); @Override AggregationFactory<MultiMonthAggregation<RegionalAggregation>> getMultiMonthAggregationFactory(); @Override CellFactory<SpatialAggregationCell> getSpatialAggregationCellFactory(AggregationContext context); @Override CellFactory<CellAggregationCell<AggregationCell>> getMultiMonthAggregationCellFactory(); @Override CellFactory<SpatialAggregationCell> getSingleDayAggregationCellFactory(AggregationContext aggregationContext); @Override CellFactory<CellAggregationCell<AggregationCell>> getCellFactory90(final AggregationContext context); @Override CellFactory<SpatialAggregationCell> getCellFactory5(final AggregationContext context);  }### Answer:
@Test public void testParseDate() throws Exception { final File file = new File("AT2_AVG_3PAARC20020112_D_dN2b.nc.gz"); assertEquals(TimeUtil.parseShortUtcFormat("2002-01-12"), FILE_TYPE.parseDate(file.getName())); final File file1 = new File("AT1_AVG_3PAARC20020416_D_dN2b.nc.gz"); assertEquals(TimeUtil.parseShortUtcFormat("2002-04-16"), FILE_TYPE.parseDate(file1.getName())); final File file2 = new File("AT2_AVG_3PAARC20020120_D_nN2b.nc.gz"); assertEquals(TimeUtil.parseShortUtcFormat("2002-01-20"), FILE_TYPE.parseDate(file2.getName())); final File file3 = new File("ATS_AVG_3PAARC20020915_D_nD3b.nc.gz"); assertEquals(TimeUtil.parseShortUtcFormat("2002-09-15"), FILE_TYPE.parseDate(file3.getName())); try { final File file4 = new File("ATS_AVG_3PAARC_20020915_D_nD3b.nc.gz"); FILE_TYPE.parseDate(file4.getName()); fail(); } catch (ParseException expected) { } }