GtfsMerger { public void setTripStrategy(EntityMergeStrategy tripStrategy) { _tripStrategy = tripStrategy; }  void setAgencyStrategy(EntityMergeStrategy agencyStrategy); void setStopStrategy(EntityMergeStrategy stopsStrategy); void setServiceCalendarStrategy(
      EntityMergeStrategy serviceCalendarStrategy); void setRouteStrategy(EntityMergeStrategy routeStrategy); void setTripStrategy(EntityMergeStrategy tripStrategy); void setShapePointStrategy(EntityMergeStrategy shapePointStrategy); void setFrequencyStrategy(EntityMergeStrategy frequencyStrategy); void setTransferStrategy(EntityMergeStrategy transferStrategy); void setFareAttributeStrategy(EntityMergeStrategy fareAttributeStrategy); void setFareRuleStrategy(EntityMergeStrategy fareRuleStrategy); EntityMergeStrategy getEntityMergeStrategyForEntityType(
      Class<?> entityType); void run(List<File> inputPaths, File outputPath);  }
@Test public void testRenamingTrips () throws IOException { _oldGtfs.putAgencies(1); _oldGtfs.putRoutes(1); _oldGtfs.putStops(3); _oldGtfs.putCalendars(1, "mask=1111100", "start_date=20120504", "end_date=20120608"); _oldGtfs.putTrips(1, "r0", "sid0"); _oldGtfs.putStopTimes("t0", "s0,s1,s2"); _newGtfs.putAgencies(1); _newGtfs.putRoutes(1); _newGtfs.putStops(3); _newGtfs.putCalendars(1, "mask=1111100", "start_date=20120601", "end_date=20120601"); _newGtfs.putTrips(1, "r0", "sid0"); _newGtfs.putStopTimes("t0", "s0,s1"); TripMergeStrategy strategy = new TripMergeStrategy(); strategy.setDuplicateDetectionStrategy( EDuplicateDetectionStrategy.IDENTITY); _merger.setTripStrategy(strategy); GtfsRelationalDao dao = merge(); for (Trip trip : dao.getAllTrips()) { assertTrue(dao.getStopTimesForTrip(trip).size() > 0); } }