@Override
    public void handleWayTags(int edgeId, EdgeIntAccess edgeIntAccess, ReaderWay way, IntsRef relationFlags) {
        OSMValueExtractor.extractTons(edgeId, edgeIntAccess, way, maxAxleLoadEncoder, Collections.singletonList("maxaxleload"));
    }
@Test
    public void testSimpleTags() {
        ReaderWay readerWay = new ReaderWay(1);
        EdgeIntAccess edgeIntAccess = new ArrayEdgeIntAccess(1);
        int edgeId = 0;
        readerWay.setTag("maxaxleload", "11.5");
        parser.handleWayTags(edgeId, edgeIntAccess, readerWay, relFlags);
        assertEquals(11.5, malEnc.getDecimal(false, edgeId, edgeIntAccess), .01);

        // if value is beyond the maximum then do not use infinity instead fallback to more restrictive maximum
        edgeIntAccess = new ArrayEdgeIntAccess(1);
        readerWay.setTag("maxaxleload", "80");
        parser.handleWayTags(edgeId, edgeIntAccess, readerWay, relFlags);
        assertEquals(63.0, malEnc.getDecimal(false, edgeId, edgeIntAccess), .01);
    }