@Test
public void unauthorizedClientIdTest() {

    this.request.addHeader("client_id", someOtherClientId);
    Mockito.when(appRepository.findByClientId(someOtherClientId)).thenReturn(null);
    clientIdInterceptorService.validate(api1.getId(), Location.HEADER);
    assertEquals(HttpStatus.UNAUTHORIZED.value(), this.ctx.getResponseStatusCode());
    assertTrue((Boolean) this.ctx.get(INTERRUPT));
    assertFalse(ctx.sendZuulResponse());
}