@Test
public void planNotInAppTest() {

    Api api = new Api();
    api.setId(30L);
    Plan plan = new Plan();
    plan.setApi(api);
    Mockito.when(appRepository.findByClientId(clientId)).thenReturn(app);
    clientIdInterceptorService.validate(api.getId(), Location.HEADER);
    assertEquals(HttpStatus.UNAUTHORIZED.value(), this.ctx.getResponseStatusCode());
    assertTrue((Boolean) this.ctx.get(INTERRUPT));
    assertFalse(ctx.sendZuulResponse());
}