Gendreau06Parser { static void checkValidFileName(Matcher m, String name) { checkArgument(m.matches(), "The filename must conform to the following regex: %s input was: %s", REGEX, name); } private  Gendreau06Parser(); static Gendreau06Parser parser(); static Gendreau06Scenario parse(File file); static Function<Path, Gendreau06Scenario> reader(); Gendreau06Parser addFile(File file); Gendreau06Parser addFile(String file); Gendreau06Parser addFile(InputStream stream, String fileName); Gendreau06Parser addFile(ImmutableList<AddParcelEvent> events,
      String fileName); Gendreau06Parser addDirectory(String dir); Gendreau06Parser addDirectory(File dir); Gendreau06Parser allowDiversion(); Gendreau06Parser offline(); Gendreau06Parser realtime(); Gendreau06Parser setNumVehicles(int num); Gendreau06Parser setNumParcels(int num); Gendreau06Parser setTickSize(long tick); Gendreau06Parser filter(GendreauProblemClass... classes); ImmutableList<Gendreau06Scenario> parse(); Function<Path, Gendreau06Scenario> asParseFunction();  }
@Test public void validFileNameTest() { Gendreau06Parser.checkValidFileName("req_rapide_01_240_24"); Gendreau06Parser.checkValidFileName("req_rapide_00001_240_24"); Gendreau06Parser.checkValidFileName("req_rapide_6_240_24"); Gendreau06Parser.checkValidFileName("req_rapide_6_240_33"); Gendreau06Parser.checkValidFileName("req_rapide_6_450_24"); }