@Test
 public void patternIncludesAppNameAndPid() throws Exception {
   final AsyncAppender wrapper =
       (AsyncAppender)
           new SyslogAppenderFactory()
               .build(
                   new LoggerContext(),
                   "MyApplication",
                   new DropwizardLayoutFactory(),
                   new NullLevelFilterFactory<>(),
                   new AsyncLoggingEventAppenderFactory());
   assertThat(((SyslogAppender) wrapper.getAppender("syslog-appender")).getSuffixPattern())
       .matches("^MyApplication\\[\\d+\\].+");
 }
 @Test
 public void stackTracePatternCanBeSet() throws Exception {
   final SyslogAppenderFactory syslogAppenderFactory = new SyslogAppenderFactory();
   syslogAppenderFactory.setStackTracePrefix("--->");
   final AsyncAppender wrapper =
       (AsyncAppender)
           syslogAppenderFactory.build(
               new LoggerContext(),
               "MyApplication",
               new DropwizardLayoutFactory(),
               new NullLevelFilterFactory<>(),
               new AsyncLoggingEventAppenderFactory());
   assertThat(((SyslogAppender) wrapper.getAppender("syslog-appender")).getStackTracePattern())
       .isEqualTo("--->");
 }