TinylogMdcAdapter implements MDCAdapter { @Override public void put(final String key, final String value) { ThreadContext.put(key, value); } TinylogMdcAdapter(); @Override void put(final String key, final String value); @Override String get(final String key); @Override void remove(final String key); @Override void clear(); @Override Map<String, String> getCopyOfContextMap(); @Override void setContextMap(final Map<String, String> contextMap);  }
@Test public void put() { new TinylogMdcAdapter().put("test", "42"); verify(provider).put("test", "42"); }