### Question:
FilenameParser { public String getExtension() { return extension; } FilenameParser( String filename ); void reset(); String next(); String getExtension(); String remaining(); String nextNonVersion();  }### Answer:
@Test public void testNoExtension() { FilenameParser parser = new FilenameParser( "foo_bar" ); assertNull( parser.getExtension() ); }