UptimeToken implements Token { @Override public Collection<LogEntryValue> getRequiredLogEntryValues() { return Collections.singletonList(LogEntryValue.DATE); } UptimeToken();   UptimeToken(final String pattern); @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() { UptimeToken token = new UptimeToken(); assertThat(token.getRequiredLogEntryValues()).containsOnly(LogEntryValue.DATE); }