@Override
    public boolean hasPrivileges(final String database) {
        return databases.contains(AuthorityConstants.PRIVILEGE_WILDCARD) || databases.contains(database);
    }
@Test
    void assertHasPrivileges() {
        assertTrue(new DatabasePermittedPrivileges(Collections.singleton("foo_db")).hasPrivileges("foo_db"));
    }