@Test
  public void testSetAttribute_failsForAttributesNotDefinedByProvider() {
    File file = createFile();
    service.setInitialAttributes(file);

    try {
      service.setAttribute(file, "test:blah", "blah", false);
      fail();
    } catch (UnsupportedOperationException expected) {
    }

    try {
      // baz is defined by "test", but basic doesn't inherit test
      service.setAttribute(file, "basic:baz", 5, false);
      fail();
    } catch (UnsupportedOperationException expected) {
    }

    assertThat(file.getAttribute("test", "baz")).isEqualTo(1);
  }
Tests for {@link AttributeService}.

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