void () { assumeUnix(); Path fifo = tempDir.getRoot().toPath().resolve("test.fifo"); createFifo(fifo.toString()); VirtualFile file = requireNonNull(myFS.refreshAndFindFileByNioFile(fifo)); assertThat(file.is(VFileProperty.SPECIAL)).isTrue(); assertThat(file.getLength()).isEqualTo(0); assertThatExceptionOfType(FileNotFoundException.class) .isThrownBy(() -> file.getInputStream()) .withMessageStartingWith("Not a file: "); assertThatExceptionOfType(FileNotFoundException.class) .isThrownBy(() -> file.contentsToByteArray()) .withMessageStartingWith("Not a file: "); }