@Test
public void testApplyWayTags()
{

    Graph graph = initExampleGraph();
    EdgeIteratorState edge = GHUtility.getEdge(graph, 0, 1);
    OSMWay way = new OSMWay(1);
    encoder.applyWayTags(way, edge);
    long flags = edge.getFlags();
    // decrease speed
    assertEquals(2, encoder.getSpeed(flags), 1e-1);
    // increase speed but use maximum speed (calculated was 24)
    assertEquals(18, encoder.getReverseSpeed(flags), 1e-1);
}