@Test
public void testAccess()
{

    OSMWay way = new OSMWay(1);
    way.setTag("highway", "motorway");
    way.setTag("sidewalk", "yes");
    assertTrue(footEncoder.acceptWay(way) > 0);
    way.setTag("sidewalk", "left");
    assertTrue(footEncoder.acceptWay(way) > 0);
    way.setTag("sidewalk", "none");
    assertFalse(footEncoder.acceptWay(way) > 0);
    way.clearTags();
    way.setTag("highway", "pedestrian");
    assertTrue(footEncoder.acceptWay(way) > 0);
    way.setTag("highway", "footway");
    assertTrue(footEncoder.acceptWay(way) > 0);
    way.setTag("highway", "motorway");
    assertFalse(footEncoder.acceptWay(way) > 0);
    way.setTag("highway", "path");
    assertTrue(footEncoder.acceptWay(way) > 0);
    way.setTag("bicycle", "official");
    assertTrue(footEncoder.acceptWay(way) > 0);
    way.setTag("foot", "no");
    assertFalse(footEncoder.acceptWay(way) > 0);
    way.setTag("foot", "official");
    assertTrue(footEncoder.acceptWay(way) > 0);
    way.clearTags();
    way.setTag("highway", "service");
    way.setTag("access", "no");
    assertFalse(footEncoder.acceptWay(way) > 0);
    way.clearTags();
    way.setTag("highway", "tertiary");
    way.setTag("motorroad", "yes");
    assertFalse(footEncoder.acceptWay(way) > 0);
    way.clearTags();
    way.setTag("highway", "cycleway");
    assertTrue(footEncoder.acceptWay(way) > 0);
    way.setTag("foot", "no");
    assertFalse(footEncoder.acceptWay(way) > 0);
    way.setTag("access", "yes");
    assertFalse(footEncoder.acceptWay(way) > 0);
    way.clearTags();
    way.setTag("highway", "service");
    way.setTag("foot", "yes");
    way.setTag("access", "no");
    assertTrue(footEncoder.acceptWay(way) > 0);
    way.clearTags();
    way.setTag("highway", "track");
    way.setTag("ford", "yes");
    assertFalse(footEncoder.acceptWay(way) > 0);
    way.setTag("foot", "yes");
    assertTrue(footEncoder.acceptWay(way) > 0);
    way.clearTags();
    way.setTag("route", "ferry");
    assertTrue(footEncoder.acceptWay(way) > 0);
    way.setTag("foot", "no");
    assertFalse(footEncoder.acceptWay(way) > 0);
}