public static void checkConfigExist(Path configFile) {
        if (!configFile.toFile().exists()) {
            throw CommonError.fileNotExistFailed("SeaTunnel", "read", configFile.toString());
        }
    }
@Test
    void testExpectedError() {
        String root = System.getProperty("java.io.tmpdir");
        // Unix Path: /tmp/not/existed
        // Windows Path: %SystemDrive%\Users\<username>\AppData\Local\Temp\not\existed
        Path path = Paths.get(root, "not", "existed");
        SeaTunnelRuntimeException exception =
                Assertions.assertThrows(
                        SeaTunnelRuntimeException.class, () -> FileUtils.checkConfigExist(path));
        Assertions.assertEquals(
                "ErrorCode:[COMMON-22], ErrorDescription:[SeaTunnel read file '"
                        + path
                        + "' failed, because it not existed.]",
                exception.getMessage());
    }