@Override
  public void doFilter(HttpRequest request, HttpResponse response, FilterChain filterChain) {
    RedirectionRequest wsRequest = new RedirectionRequest(request);
    ServletResponse wsResponse = new ServletResponse(response);

    webServiceEngine.execute(wsRequest, wsResponse);
  }
@Test
  public void redirect_components_update_key() {
    when(request.getServletPath()).thenReturn("/api/components/update_key");
    when(request.getMethod()).thenReturn("POST");

    underTest.doFilter(new JavaxHttpRequest(request), new JavaxHttpResponse(response), chain);

    assertRedirection("/api/projects/update_key", "POST");
  }