private Graph graph = new Graph();
private GenericAStar aStar = new GenericAStar();
public void setUp() throws Exception {
OpenStreetMapGraphBuilderImpl osmBuilder = new OpenStreetMapGraphBuilderImpl();
osmBuilder.setDefaultWayPropertySetSource(new DefaultWayPropertySetSource());
AnyFileBasedOpenStreetMapProviderImpl provider = new AnyFileBasedOpenStreetMapProviderImpl();
URL osmDataUrl = getClass().getResource("bridge_construction.osm.pbf");
File osmDataFile = new File(URLDecoder.decode(osmDataUrl.getFile(), "UTF-8"));
provider.setPath(osmDataFile);
osmBuilder.setProvider(provider);
HashMap<Class<?>, Object> extra = Maps.newHashMap();
osmBuilder.buildGraph(graph, extra); // TODO get rid of this "extra" thing
}