static void validateUploadDirectoryPath(String  uploadDirectoryPath) {
        if (uploadDirectoryPath != null) {
            Path path = Paths.get(uploadDirectoryPath);
            if (!Files.exists(path)) {
                String errorMessage = String.format("The upload directory path does not exist: %s", path);
                throw new JetException(errorMessage);
            }
        }
    }
@Test
    public void testValidateTempDirectoryPath() {
        assertThatThrownBy(() -> JarOnClientValidator.validateUploadDirectoryPath("foo"))
                .isInstanceOf(JetException.class)
                .hasMessageContaining("The upload directory path does not exist: foo");
    }