void () { assumeUnix(); File file = new File("/dev/null"); FileAttributes attributes = getAttributes(file); assertEquals(FileAttributes.Type.SPECIAL, attributes.getType()); assertFalse(attributes.isSymLink()); assertFalse(attributes.isHidden()); assertTrue(attributes.isWritable()); assertEquals(0, attributes.length); assertTrue(attributes.isWritable()); String target = resolveSymLink(file); assertEquals(file.getPath(), target); }