@Override
  public void preAction(WebService.Action action, Request request) {
    Level logLevel = getLogLevel();

    String deprecatedSinceEndpoint = action.deprecatedSince();
    if (deprecatedSinceEndpoint != null) {
      logWebServiceMessage(logLevel, deprecatedSinceEndpoint);
    }

    action.params().forEach(param -> logParamMessage(request, logLevel, param));
  }
@Test
  public void preAction_whenParamAndEndpointAreNotDeprecated_shouldLogNothing() {
    WebService.Action action = mock(WebService.Action.class);
    when(action.deprecatedSince()).thenReturn(null);
    WebService.Param mockParam = mock(WebService.Param.class);
    when(mockParam.deprecatedKeySince()).thenReturn(null);
    when(action.params()).thenReturn(List.of(mockParam));

    Request request = mock(Request.class);

    underTest.preAction(action, request);

    verifyNoDeprecatedMsgInLogs(Level.DEBUG);
    verifyNoDeprecatedMsgInLogs(Level.WARN);
  }