stopB.setName("Stop B");
GtfsRelationalDao dao = Mockito.mock(GtfsRelationalDao.class);
Mockito.when(dao.getAllStops()).thenReturn(Arrays.asList(stopA, stopB));
StopEntriesFactory factory = new StopEntriesFactory();
factory.setGtfsDao(dao);
TransitGraphImpl graph = new TransitGraphImpl();
AgencyEntryImpl agency = new AgencyEntryImpl();
agency.setId("1");
graph.putAgencyEntry(agency);
graph.refreshAgencyMapping();
factory.processStops(graph);
StopEntryImpl stopEntryA = graph.getStopEntryForId(stopA.getId());
assertEquals(stopA.getId(), stopEntryA.getId());
assertEquals(stopA.getLat(), stopEntryA.getStopLat(), 0);