@Override
    public void handlerPlugin(final PluginData pluginData) {
        Map<String, String> configMap = GsonUtils.getInstance().toObjectMap(pluginData.getConfig(), String.class);
        String defaultHandleJson = Optional.ofNullable(configMap.get(Constants.DEFAULT_HANDLE_JSON)).orElse("");
        BasicAuthConfig basicAuthConfig = new BasicAuthConfig();
        basicAuthConfig.setDefaultHandleJson(defaultHandleJson);
        Singleton.INST.single(BasicAuthConfig.class, basicAuthConfig);
    }
@Test
    public void testHandlerPlugin() {
        final PluginData pluginData = new PluginData("pluginId", "pluginName", "{\"defaultHandleJson\":\"test:test123\"}", "0", false, null);
        basicAuthPluginDataHandler.handlerPlugin(pluginData);
        BasicAuthConfig basicAuthConfig = Singleton.INST.get(BasicAuthConfig.class);
        Map<String, String> map = GsonUtils.getInstance().toObjectMap(pluginData.getConfig(), String.class);
        assertEquals(basicAuthConfig.getDefaultHandleJson(), map.get("defaultHandleJson"));
    }