AgencyEntriesFactory factory = new AgencyEntriesFactory();
factory.setGtfsDao(gtfsDao);
factory.setUniqueService(new UniqueServiceImpl());
factory.processAgencies(graph);
AgencyEntry agencyEntryA = graph.getAgencyForId("A");
assertEquals("A", agencyEntryA.getId());
AgencyEntry agencyEntryB = graph.getAgencyForId("B");
assertEquals("B", agencyEntryB.getId());
List<AgencyEntry> agencies = graph.getAllAgencies();
assertEquals(2, agencies.size());
assertTrue(agencies.contains(agencyEntryA));
assertTrue(agencies.contains(agencyEntryB));