SimpleNDCAdapter implements NDCAdapter { @Override public boolean isEmpty() { return getDepth()==0; }  @Override void push(String messagePattern, Object... arguments); @Override void pop(); @Override int getDepth(); @Override void setMaximumDepth(int maximumDepth); @Override boolean isEmpty(); @Override void clear(); @Override @SuppressWarnings("PMD.AvoidInstantiatingObjectsInLoops") Message[] getContextStack();  }
@Test public void isEmpty() { assertTrue(instance.isEmpty()); }