@Test
public void testIsToValidateHooks(TestContext context){

    storage.putMockData(VALIDATION_URI, RESOURCE_GET_PUT_GENERIC);
    ValidationHandler validationHandler = new ValidationHandler(validationResourceManager, storage, httpClient, SCHEMA_ROOT);
    sendValidationResourcesUpdate(RESOURCE_GET_PUT_GENERIC);
           class GetToHooksResourceRequest extends HttpServerRequestMock{
        @Override public HttpMethod method() {
            return HttpMethod.GET;
        }
        @Override public String uri() {
            return "/gateleen/trip/v1/destinations/current/_hooks/listeners/http/linti-06614431506022811";
        }
        @Override public String path() {
            return "/gateleen/trip/v1/destinations/current/_hooks/listeners/http/linti-06614431506022811";
        }
    }
    context.assertFalse(validationHandler.isToValidate(new GetToHooksResourceRequest()), "GET Requests to hooks should not be validated");
    class GetToHooksRouteResourceRequest extends HttpServerRequestMock{
        @Override public HttpMethod method() {
            return HttpMethod.PUT;
        }
        @Override public String uri() {
            return "/gateleen/trip/v1/destinations/current/_hooks/route/http/linti-06614431506022811";
        }
        @Override public String path() {
            return "/gateleen/trip/v1/destinations/current/_hooks/route/http/linti-06614431506022811";
        }
    }
    context.assertFalse(validationHandler.isToValidate(new GetToHooksRouteResourceRequest()), "GET Requests to hooks/routes should not be validated");
    class GetGateleenResourceRequest extends HttpServerRequestMock{
        @Override public HttpMethod method() {
            return HttpMethod.PUT;
        }
        @Override public String uri() {
            return "/gateleen/trip/v1/destinations/current/11";
        }
        @Override public String path() {
            return "/gateleen/trip/v1/destinations/current/11";
        }
    }
    context.assertTrue(validationHandler.isToValidate(new GetGateleenResourceRequest()), "GET Requests with wildcard should be validated");
}