@Override
    public ShardingSphereUser swapToObject(final YamlUserConfiguration yamlConfig) {
        if (null == yamlConfig) {
            return null;
        }
        Grantee grantee = convertYamlUserToGrantee(yamlConfig.getUser());
        return new ShardingSphereUser(grantee.getUsername(), yamlConfig.getPassword(), grantee.getHostname(), yamlConfig.getAuthenticationMethodName(), yamlConfig.isAdmin());
    }
@Test
    void assertSwapToNullObject() {
        assertNull(new YamlUserSwapper().swapToObject(null));
    }