@Test
public void hookRegistration_usesMinusOneIfExpireAfterIsSetToMinusOne(TestContext testContext) {

    // Initialize mock
    final int[] statusCodePtr = new int[]{ 0 };
    final String[] statusMessagePtr = new String[]{ null };
    final HttpServerRequest request;
    {  // Mock request
        final MultiMap requestHeaders = new CaseInsensitiveHeaders();
        requestHeaders.set(ExpiryCheckHandler.EXPIRE_AFTER_HEADER, "-1");
        final Buffer requestBody = createMinimalHookBodyAsBuffer();
        request = createSimpleRequest(HttpMethod.PUT, "/gateleen/example/_hooks/listeners/http/my-service/and-one-more-again-hook",
                requestHeaders, requestBody, statusCodePtr, statusMessagePtr
        );
    }
    // Trigger work
    hookHandler.handle(request);
    // Assert request was ok
    testContext.assertEquals(200, statusCodePtr[0]);
    { // Assert expiration time is set to -1 (infinite)
        final String storedHook = storage.getMockData().get(HOOK_ROOT_URI + "registrations/listeners/http+my-service+and-one-more-again-hook+gateleen+example");
        testContext.assertNotNull(storedHook);
        final String expirationTime = new JsonObject(storedHook).getString("expirationTime");
        logger.debug("expirationTime is '" + expirationTime + "'");
        testContext.assertNull(expirationTime);
    }
}