@Test
public void testAuthorizeUserUriGETRequest(TestContext context) {

    String requestUri = "/gateleen/server/security/v1/user";
    CaseInsensitiveHeaders headers = new CaseInsensitiveHeaders();
    headers.add("x-rp-usr", "user_1234");
    headers.add("x-rp-grp", "z-gateleen-admin,z-gateleen-authenticated,z-gateleen-developer");
    DummyHttpServerResponse response = Mockito.spy(new DummyHttpServerResponse());
    AuthorizerRequest req = new AuthorizerRequest(HttpMethod.GET, requestUri, headers, response);
    authorizer.authorize(req).setHandler(event -> {
        context.assertTrue(event.succeeded());
        context.assertFalse(event.result()); // false means that the request must not be handled anymore
    });
    Mockito.verify(response, timeout(1000).times(1))
            .end(eq("{\"userId\":\"user_1234\",\"roles\":[\"authenticated\",\"everyone\",\"admin\",\"developer\"]}"));
}