public void testExtract() {
Properties config = new Properties();
config.setProperty("filenamePattern", "(\\w*)_(\\d*)\\.txt");
config.setProperty("metadataKeys", "Name,ID");
FilenameRegexMetExtractor extractor = new FilenameRegexMetExtractor();
extractor.configure(config);
Reference ref = new Reference();
ref.setOrigReference("file:/foo/bar/foobar_001.txt");
ref.setDataStoreReference("file:/foo/bar/final/foobar_001.txt");