### Question:
LogcatAppender extends UnsynchronizedAppenderBase<ILoggingEvent> { public PatternLayoutEncoder getTagEncoder() { return this.tagEncoder; } LogcatAppender(); @Override void start(); void append(ILoggingEvent event); PatternLayoutEncoder getEncoder(); void setEncoder(PatternLayoutEncoder encoder); PatternLayoutEncoder getTagEncoder(); void setTagEncoder(PatternLayoutEncoder encoder); void setCheckLoggable(boolean enable); boolean getCheckLoggable();  }### Answer:
@Test public void tagExcludesStackTraces() { LoggingEvent event = new LoggingEvent(); Throwable throwable = new Throwable("throwable"); ThrowableProxy tp = new ThrowableProxy(throwable); event.setThrowableProxy(tp); event.setMessage(TAG); setTagPattern(TAG, true); String actualTag = logcatAppender.getTagEncoder().getLayout().doLayout(event); assertThat(TAG, is(actualTag)); }