### Question:
TaggedValueHelper { public static final boolean hasTag(final String name, final Taggable element, final ModelIndex lookup) { for (final TaggedValue taggedValue : element.getTaggedValues()) { final TagDefinition tagDefinition = lookup.getTagDefinition(taggedValue.getTagDefinition()); if (name.equals(tagDefinition.getName())) { return true; } } return false; }  static final boolean getBooleanTag(final String name, final Taggable element, final ModelIndex lookup,
            final boolean defaultValue); static final String getStringTag(final String name, final Taggable element, final ModelIndex lookup,
            final String defaultValue); static final boolean hasTag(final String name, final Taggable element, final ModelIndex lookup);  }### Answer:
@Test public void testHasTag() throws Exception { Type classType = modelIndex.getType(CLASSTYPE_ID); assertTrue(TaggedValueHelper.hasTag(TAG_DEFINITION_NAME, classType, modelIndex)); }
@Test public void testHasTagFalse() { Type classType = modelIndex.getType(CLASSTYPE_ID); assertFalse(TaggedValueHelper.hasTag("", classType, modelIndex)); }