LoggerContext { public LoggerContext(final Supplier<String> stringProvider) { this.stringProvider = stringProvider; } LoggerContext(final Supplier<String> stringProvider); static Builder builder(final String name); static Builder builder(final Class clazz); @Override String toString();  }
@Test public void testLoggerContext() throws Exception { final LoggerContext context = LoggerContext.builder("test").addValue(1).add("foo", "bar").build(); assertEquals("test{1}{foo=bar}", context.toString()); }