@Test
public void testHandleAclRoleMapper(TestContext context) {

    String requestUri = "/gateleen/domain/tests/someResource";
    CaseInsensitiveHeaders headers = new CaseInsensitiveHeaders();
    // we have only a acl for "domain" which must trigger in this case as well
    // see https://github.com/swisspush/gateleen/issues/285
    headers.add("x-rp-grp", "z-gateleen-domain-admin-stage-int");
    DummyHttpServerResponse response = Mockito.spy(new DummyHttpServerResponse());
    AuthorizerRequest req = new AuthorizerRequest(HttpMethod.PUT, requestUri, headers, response);
    authorizer.authorize(req).setHandler(event -> {
        context.assertTrue(event.succeeded());
        context.assertTrue(event.result());
        context.assertTrue(req != null);
        Set<String> roles = new RoleExtractor().extractRoles(req);
        context.assertTrue(roles.size() == 3);
        context.assertTrue(roles.contains("z-gateleen-domain-admin-stage-int"));
        context.assertTrue(roles.contains("z-gateleen-domain-admin-int"));
        context.assertTrue(roles.contains("z-gateleen-everyone"));
    });
    Mockito.verifyZeroInteractions(response);
}