### Question:
HikeFlagEncoder extends FootFlagEncoder { @Override public long acceptWay(ReaderWay way) { String highwayValue = way.getTag("highway"); if (highwayValue == null) { long acceptPotentially = 0; if (way.hasTag("route", ferries)) { String footTag = way.getTag("foot"); if (footTag == null || "yes".equals(footTag)) acceptPotentially = acceptBit | ferryBit; } if (way.hasTag("railway", "platform")) acceptPotentially = acceptBit; if (way.hasTag("man_made", "pier")) acceptPotentially = acceptBit; if (acceptPotentially != 0) { if (way.hasTag(restrictions, restrictedValues) && !getConditionalTagInspector().isRestrictedWayConditionallyPermitted(way)) return 0; return acceptPotentially; } return 0; } if (way.hasTag("foot", intendedValues)) return acceptBit; if (way.hasTag(restrictions, restrictedValues) && !getConditionalTagInspector().isRestrictedWayConditionallyPermitted(way)) return 0; if (way.hasTag("sidewalk", sidewalkValues)) return acceptBit; if (!allowedHighwayTags.contains(highwayValue)) return 0; if (way.hasTag("motorroad", "yes")) return 0; if (isBlockFords() && (way.hasTag("highway", "ford") || way.hasTag("ford"))) return 0; if (getConditionalTagInspector().isPermittedWayConditionallyRestricted(way)) return 0; else return acceptBit; } HikeFlagEncoder();  HikeFlagEncoder(PMap properties);  HikeFlagEncoder(String propertiesStr);  HikeFlagEncoder(int speedBits, double speedFactor); @Override int getVersion(); @Override long acceptWay(ReaderWay way); @Override boolean supports(Class<?> feature); @Override String toString();  }### Answer:
@Test public void testAccess() { ReaderWay way = new ReaderWay(0); way.setTag("highway", "tertiary"); way.setTag("access", "no"); way.setTag("sidewalk", "both"); way.setTag("foot", "no"); assertFalse(hikeEncoder.acceptWay(way) > 0); }