  @Test
  public void shouldRewriteProcessIdFromHeaderToProcessContext() throws Exception {


    // given
    when(httpRequest.getHeader(eq(TracingFilter.RATEL_HEADER_PROCESS_ID))).thenReturn("123");

    assertThat(ProcessContext.getInstance().getProcessIdentifier()).isNull();

    // when
    filter.doFilter(httpRequest, httpResponse, chainStub);

    // then
    assertThat(ProcessContext.getInstance().getProcessIdentifier()).isNull();
    assertThat(processIdInsideFilter).isEqualTo("123");

  }