static void validateFileSizeIsNotZero(Path jarPath) {
        // Check that the file exists and its size is not 0
        try {
            long jarSize = Files.size(jarPath);
            if (jarSize == 0) {
                throw new JetException("File size can not be 0");
            }
        } catch (IOException exception) {
            throw new JetException("File is not accessible ", exception);
        }
    }
@Test
    public void testValidateFileSizeIsNotZero() {
        Path jarPath = Paths.get("foo");
        assertThatThrownBy(() -> JarOnMemberValidator.validateFileSizeIsNotZero(jarPath))
                .isInstanceOf(JetException.class)
                .hasMessageContaining("File is not accessible");
    }