### Question:
OSMWithTags { public String getTag(String tag) { tag = tag.toLowerCase(); if (_tags != null && _tags.containsKey(tag)) return _tags.get(tag); return null; }  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 testGetTag() { OSMWithTags o = new OSMWithTags(); assertNull(o.getTag("foo")); assertNull(o.getTag("FOO")); o.addTag("foo", "bar"); assertEquals("bar", o.getTag("foo")); assertEquals("bar", o.getTag("FOO")); }