### Question:
InBloomFilterMapper extends Mapper<LongWritable,Text,Text,Text> { static String extractDateTime(String filename) { String lastBit = getLast(SLASH_SPLITTER.split(filename)); String dotless = getFirst(DOT_SPLITTER.split(lastBit), ""); Iterable<String> segments = skip(DASH_SPLITTER.split(dotless),1); return Joiner.on("-").join(segments); }  static Key toKey(Text t); static Key toKey(String s); static final String FILTER_PATH; static final public String NB_HASH; static final public String HASH_TYPE; }### Answer:
@Test public void parsesFilenames() { assertEquals("20080101-010000",extractDateTime("/bigdata/2008/2008-01/pagecounts-20080101-010000.gz")); }