public static PluginVO buildPluginVO(final PluginDO pluginDO) {
        return new PluginVO(pluginDO.getId(), pluginDO.getRole(), pluginDO.getName(),
                pluginDO.getConfig(), pluginDO.getSort(), pluginDO.getEnabled(),
                DateUtils.localDateTimeToString(pluginDO.getDateCreated().toLocalDateTime()),
                DateUtils.localDateTimeToString(pluginDO.getDateUpdated().toLocalDateTime()),
                Optional.ofNullable(pluginDO.getPluginJar()).map(Base64::encodeToString).orElse(""),
                Lists.newArrayList());
    }
@Test
    public void testBuildPluginVO() {
        Timestamp currentTime = new Timestamp(System.currentTimeMillis());
        assertNotNull(PluginVO.buildPluginVO(PluginDO.builder()
                .name(PluginEnum.GLOBAL.getName())
                .dateCreated(currentTime)
                .dateUpdated(currentTime)
                .build()));
    }