@Test
public void testParseFullPathTimestampWithCustomFormat() {
PropertiesCollectorSPI spi = getTimestampSpi();
String regex = "(?:\\\\)(\\d{8})(?:\\\\)(?:file.)(t\\d{2}z)(?:.txt)";
PropertiesCollector collector = spi.create("regex=" + regex + ",format=yyyyMMdd't'HH'z',fullPath=true", Arrays.asList("time"));
File file = new File("c:\\data\\20120602\\file.t12z.txt");
collector.collect(file);
collector.setProperties(feature);
Date time = (Date) feature.getAttribute("time");
assertNotNull(time);