AbstractTag implements Tag<T> { @Override public String getKey() { return key; } AbstractTag(String tagKey); @Override String getKey(); @Override abstract void set(Span span, T tagValue);  }
@Test public void testGetKey() { String key = "bar"; StringTag tag = new StringTag(key); assertEquals(key, tag.getKey()); }