LayoutPatternBuilder { public String build() { removeTrailingComma(); return sb.append(COMMON_POSTFIX_PATTERN).toString(); } LayoutPatternBuilder(); LayoutPatternBuilder addRequestMetrics(); LayoutPatternBuilder addBasicApplicationLogs(); LayoutPatternBuilder addContextProperties(List<String> exclusions); LayoutPatternBuilder addCustomFields(List<String> mdcKeyNames); LayoutPatternBuilder addStacktraces(); LayoutPatternBuilder suppressExceptions(); String build();  }
@Test public void minimalPattern() throws Exception { String pattern = new LayoutPatternBuilder().build(); assertThat(pattern, is(COMMON_PREFIX + COMMON_SUFFIX)); assertThat(pattern, specificPart(is(isEmptyString()))); }