You can also avoid dealing with cleaning up files your tests create by using a new file system instance for each test... just remember to close each file system when you are done!Jimfs can create file systems that mimic (to a certain extent!) the behavior of a typical UNIX file system (i.e. Linux), OS X, or Windows, including supporting all file attributes they support.