public A hasTag(String key) {
    isNotNull();
    Meter.Id actualId = actualId();
    if (actualId.getTag(key) == null) {
      failWithMessage("Expected meter to have tag with key <%s>"
          + " but meter had no tag with that key in <%s>",
          key, actualId.getTags());
    }
    return myself;
  }
Verifies that the meter has a tag with the given key.

@param key the expected tag key
@return this assertion object
@throws AssertionError if the meter is {@code null}
@throws AssertionError if the meter has no tag with the given key
geode-junit/src/main/java/org/apache/geode/test/micrometer/AbstractMeterAssert.java