ThreadContextToken implements Token { @Override public Collection<LogEntryValue> getRequiredLogEntryValues() { return Collections.singletonList(LogEntryValue.CONTEXT); } ThreadContextToken(final String key);   ThreadContextToken(final String key, final String defaultValue); @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 requiredLogEntryValues() { ThreadContextToken token = new ThreadContextToken("test"); assertThat(token.getRequiredLogEntryValues()).containsOnly(LogEntryValue.CONTEXT); }