NDC { public static void push(final String message) { InternalLogger.log(org.tinylog.Level.WARN, "tinylog does not support NDC, \"" + message + "\" will be discarded"); } private  NDC(); static void clear(); @SuppressWarnings("rawtypes") static Stack cloneStack(); @SuppressWarnings("rawtypes") static void inherit(final Stack stack); static int getDepth(); static String pop(); static String peek(); static void push(final String message); static void remove(); static void setMaxDepth(final int maxDepth);  }
@Test public void push() { NDC.push("Hello World!"); assertThat(NDC.getDepth()).isZero(); assertThat(NDC.peek()).isEmpty(); assertThat(systemStream.consumeErrorOutput()).contains("NDC", "Hello World!"); }