BundleToken implements Token { @Override public void render(final LogEntry logEntry, final StringBuilder builder) { for (Token token : tokens) { token.render(logEntry, builder); } } BundleToken(final Collection<Token> tokens); @Override Collection<LogEntryValue> getRequiredLogEntryValues(); @Override void render(final LogEntry logEntry, final StringBuilder builder); @Override void apply(final LogEntry logEntry, final PreparedStatement statement, final int index);  }
@Test public void render() { BundleToken token = new BundleToken(asList(new PlainTextToken("Abc"), new PlainTextToken("123"))); StringBuilder builder = new StringBuilder(); token.render(LogEntryBuilder.empty().create(), builder); assertThat(builder).hasToString("Abc123"); }