@Test
void tempFile() throws IOException {

    Path file = Files.tempFile();
    assertThat(file.getFileName().toString()).endsWith(".tmp");
    java.nio.file.Files.write(file, Strings.bytes("test"));
    assertThat(Files.size(file)).isEqualTo(4);
    assertThat(Files.lastModified(file)).isNotNull();
    assertThat(Files.text(file)).isEqualTo("test");
    Files.delete(file);
}