### Question:
OSMWithTags { public boolean isThroughTrafficExplicitlyDisallowed() { String access = getTag("access"); boolean noThruTraffic = "destination".equals(access) || "private".equals(access) || "customers".equals(access) || "delivery".equals(access) || "forestry".equals(access) || "agricultural".equals(access); return noThruTraffic; }  long getId(); void setId(long id); void addTag(OSMTag tag); void addTag(String key, String value); Map<String, String> getTags(); boolean hasTag(String tag); boolean isTagFalse(String tag); boolean isTagTrue(String tag); boolean doesTagAllowAccess(String tag); String getTag(String tag); Boolean isTag(String tag, String value); String getAssumedName(); Map<String, String> getTagsByPrefix(String prefix); static boolean isFalse(String tagValue); static boolean isTrue(String tagValue); boolean isUnderConstruction(); boolean isGeneralAccessDenied(); boolean isMotorcarExplicitlyDenied(); boolean isMotorcarExplicitlyAllowed(); boolean isBicycleExplicitlyDenied(); boolean isBicycleExplicitlyAllowed(); boolean isPedestrianExplicitlyDenied(); boolean isPedestrianExplicitlyAllowed(); boolean isThroughTrafficExplicitlyDisallowed();  }### Answer:
@Test public void testIsThroughTrafficExplicitlyDisallowed() { OSMWithTags o = new OSMWithTags(); assertFalse(o.isThroughTrafficExplicitlyDisallowed()); o.addTag("access", "something"); assertFalse(o.isThroughTrafficExplicitlyDisallowed()); o.addTag("access", "destination"); assertTrue(o.isThroughTrafficExplicitlyDisallowed()); o.addTag("access", "forestry"); assertTrue(o.isThroughTrafficExplicitlyDisallowed()); o.addTag("access", "private"); assertTrue(o.isThroughTrafficExplicitlyDisallowed()); }