MethodNameToken implements Token { @Override public void render(final LogEntry logEntry, final StringBuilder builder) { builder.append(logEntry.getMethodName()); } MethodNameToken(); @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 renderMethodName() { MethodNameToken token = new MethodNameToken(); assertThat(render(token, "testMethod")).isEqualTo("testMethod"); }