public static void syncToFile(Collection<Member> members) {
        try {
            StringBuilder builder = new StringBuilder();
            builder.append('#').append(LocalDateTime.now()).append(StringUtils.LF);
            for (String member : simpleMembers(members)) {
                builder.append(member).append(StringUtils.LF);
            }
            EnvUtil.writeClusterConf(builder.toString());
        } catch (Throwable ex) {
            Loggers.CLUSTER.error("cluster member node persistence failed : {}", ExceptionUtil.getAllExceptionMsg(ex));
        }
    }
@Test
    void testSyncToFile() throws IOException {
        File file = new File(EnvUtil.getClusterConfFilePath());
        file.getParentFile().mkdirs();
        assertTrue(file.createNewFile());
        MemberUtil.syncToFile(Collections.singleton(originalMember));
        try (BufferedReader reader = new BufferedReader(new FileReader(EnvUtil.getClusterConfFilePath()))) {
            String line = "";
            while ((line = reader.readLine()) != null) {
                if (!line.startsWith("#")) {
                    assertEquals(IP + ":" + PORT, line.trim());
                    return;
                }
            }
            fail("No found member info in cluster.conf");
        } finally {
            file.delete();
        }
    }