### Question:
DosAttributeProvider extends AttributeProvider { @Override public void set(File file, String view, String attribute, Object value, boolean create) { if (supports(attribute)) { checkNotCreate(view, attribute, create); file.setAttribute("dos", attribute, checkType(view, attribute, value, Boolean.class)); } }  @Override String name(); @Override ImmutableSet<String> inherits(); @Override ImmutableSet<String> fixedAttributes(); @Override ImmutableMap<String, ?> defaultValues(Map<String, ?> userProvidedDefaults); @NullableDecl @Override Object get(File file, String attribute); @Override void set(File file, String view, String attribute, Object value, boolean create); @Override Class<DosFileAttributeView> viewType(); @Override DosFileAttributeView view(
      FileLookup lookup, ImmutableMap<String, FileAttributeView> inheritedViews); @Override Class<DosFileAttributes> attributesType(); @Override DosFileAttributes readAttributes(File file);  }### Answer:
@Test public void testSet() { for (String attribute : DOS_ATTRIBUTES) { assertSetAndGetSucceeds(attribute, true); assertSetFailsOnCreate(attribute, true); } }