void () { File file = tempDir.newDirectory("dir"); FileAttributes attributes = getAttributes(file); assertEquals(FileAttributes.Type.DIRECTORY, attributes.getType()); assertFalse(attributes.isSymLink()); assertFalse(attributes.isHidden()); assertTrue(attributes.isWritable()); assertEquals(file.length(), attributes.length); assertEquals(file.lastModified(), attributes.lastModified); assertTrue(attributes.isWritable()); String target = resolveSymLink(file); assertEquals(file.getPath(), target); }