@Test public void returnsClientWhenClientPresent_fromXfccHeader() {

  when(httpServletRequest.getLocalPort()).thenReturn(xfccAllowedPort);
  when(request.getRequestHeader(ClientAuthFactory.XFCC_HEADER_NAME)).thenReturn(
      List.of(xfccHeader));
  when(securityContext.getUserPrincipal()).thenReturn(xfccPrincipal);
  assertThat(factory.provide(request, httpServletRequest)).isEqualTo(client);
}