@Test
  public void testAttributes() {
    PosixFileAttributes attrs = provider.readAttributes(file);
    assertThat(attrs.permissions()).isEqualTo(PosixFilePermissions.fromString("rw-r--r--"));
    assertThat(attrs.group()).isEqualTo(createGroupPrincipal("group"));
    assertThat(attrs.fileKey()).isEqualTo(0);
  }
Tests for {@link PosixAttributeProvider}.

@author Colin Decker
jimfs/src/test/java/com/google/common/jimfs/PosixAttributeProviderTest.java