@HighFrequencyInvocation
    public boolean isAuthorized(final String database) {
        return null == grantee || rule.findUser(grantee).map(ShardingSphereUser::isAdmin).orElse(false)
                || rule.findPrivileges(grantee).map(optional -> optional.hasPrivileges(database)).orElse(false);
    }
@Test
    void assertCheckIsAuthorizedDatabase() {
        Collection<ShardingSphereUser> users = Collections.singleton(new ShardingSphereUser("root", "", "localhost"));
        AuthorityRuleConfiguration ruleConfig = new AuthorityRuleConfiguration(users, new AlgorithmConfiguration("FIXTURE", new Properties()), Collections.emptyMap(), null);
        assertTrue(new AuthorityChecker(new AuthorityRule(ruleConfig), new Grantee("root", "localhost")).isAuthorized("db0"));
    }