GlobalAuthorizationConfigurationBuilder globalRoles = global.security().authorization()
.principalRoleMapper(new IdentityRoleMapper());
ConfigurationBuilder config = TestCacheManagerFactory.getDefaultCacheConfiguration(true);
AuthorizationConfigurationBuilder authConfig = config.security().authorization().enable();
globalRoles
.role("listener").permission(AuthorizationPermission.LISTEN)
.role("admin").permission(AuthorizationPermission.ALL);
authConfig.role("listener").role("admin");
return TestCacheManagerFactory.createCacheManager(global, config);
}