@DisabledOnOs(OS.WINDOWS)
@Test
void permissions() throws IOException {

    File file = createTempFile();
    Path path = file.toPath();
    boolean result = FileUtil.configurePermissions(file, true);
    assertSoftly(softly -> {
        softly.assertThat(path.toFile())
            .canRead()
            .canWrite();
        softly.assertThat(path.toFile()
            .canExecute())
            .isTrue();
        softly.assertThat(result)
            .isTrue();
    });
    boolean result2 = FileUtil.configurePermissions(file, false);
    assertSoftly(softly -> {
        softly.assertThat(path.toFile())
            .canRead()
            .canWrite();
        softly.assertThat(path.toFile()
            .canExecute())
            .isFalse();
        softly.assertThat(result2)
            .isTrue();
    });
}