Graph graph = new Graph();
_builder.buildGraph(graph, _extra);
graph.index(new DefaultStreetVertexIndexFactory());
Trip trip = graph.index.tripForId.get(new AgencyAndId("a0", "t0"));
TripPattern pattern = graph.index.patternForTrip.get(trip);
List<Trip> trips = pattern.getTrips();
assertEquals(BikeAccess.ALLOWED,
BikeAccess.fromTrip(withId(trips, new AgencyAndId("a0", "t0"))));
assertEquals(BikeAccess.NOT_ALLOWED,
BikeAccess.fromTrip(withId(trips, new AgencyAndId("a0", "t1"))));
}