@Override
    public AuthorityRuleConfiguration build() {
        Collection<ShardingSphereUser> defaultUsers = new LinkedHashSet<>(Collections.singleton(new ShardingSphereUser(DefaultUser.USERNAME, DefaultUser.PASSWORD, DefaultUser.HOSTNAME, "", true)));
        AlgorithmConfiguration authorityProviderConfig = new AlgorithmConfiguration("ALL_PERMITTED", new Properties());
        return new AuthorityRuleConfiguration(defaultUsers, authorityProviderConfig, new LinkedHashMap<>(), null);
    }
@Test
    void assertBuild() {
        AuthorityRuleConfiguration actual = new DefaultAuthorityRuleConfigurationBuilder().build();
        assertThat(actual.getPrivilegeProvider().getType(), is("ALL_PERMITTED"));
        assertThat(actual.getUsers().size(), is(1));
        assertNull(actual.getDefaultAuthenticator());
        assertTrue(actual.getAuthenticators().isEmpty());
    }