@Test
public void successCaseTest() {

    Mockito.when(appRepository.findByClientId(clientId)).thenReturn(app);
    clientIdInterceptorService.validate(api1.getId(), Location.HEADER);
    // Internal Server Error is expected because the request has no finished at this
    assertEquals(HttpStatus.INTERNAL_SERVER_ERROR.value(), this.ctx.getResponseStatusCode());
}