### Question:
DefaultAcl { public boolean applyToIfEnabled(Item item) { if (!aclMode.isEnabled()) { return false; } checkNotNull(item, "Item cannot be null."); if (isAclEmpty(item)) { applyDefaultAcl(item); return true; } else { switch (aclMode) { case FALLBACK: return false; case APPEND: List<Principal> appendedReaders = getCopyOrEmptyList(item.getAcl().getReaders()); appendedReaders.addAll(commonAcl.getReaders()); List<Principal> appendedDeniedReaders = getCopyOrEmptyList(item.getAcl().getDeniedReaders()); appendedDeniedReaders.addAll(commonAcl.getDeniedReaders()); Acl.Builder appendedAcl = new Acl.Builder() .setReaders(appendedReaders) .setDeniedReaders(appendedDeniedReaders) .setInheritFrom(item.getAcl().getInheritAclFrom()) .setOwners(getCopyOrEmptyList(item.getAcl().getOwners())); if (!Strings.isNullOrEmpty(item.getAcl().getAclInheritanceType())) { appendedAcl.setInheritanceType( InheritanceType.valueOf(item.getAcl().getAclInheritanceType())); } appendedAcl.build().applyTo(item); return true; case OVERRIDE: applyDefaultAcl(item); return true; default: throw new IllegalStateException( "Attempting to apply a default ACL with mode: " + aclMode.toString()); } } } private  DefaultAcl(Builder builder); static DefaultAcl fromConfiguration(IndexingService indexingService); boolean applyToIfEnabled(Item item); DefaultAclMode getDefaultAclMode(); static final String DEFAULT_ACL_MODE; static final String DEFAULT_ACL_PUBLIC; static final String DEFAULT_ACL_READERS_USERS; static final String DEFAULT_ACL_READERS_GROUPS; static final String DEFAULT_ACL_DENIED_USERS; static final String DEFAULT_ACL_DENIED_GROUPS; static final String DEFAULT_ACL_NAME; static final String DEFAULT_ACL_NAME_DEFAULT; static final String DEFAULT_ACL_QUEUE; static final Parser<DefaultAclMode> DEFAULT_ACL_MODE_PARSER; }### Answer:
@Test public void testNoneDefaultAcl() { DefaultAcl defAcl = new DefaultAcl.Builder() .setIndexingService(indexingServiceMock) .setMode(DefaultAclMode.NONE) .build(); Acl itemAcl = new Acl.Builder() .setReaders(Collections.singletonList(Acl.getUserPrincipal("ext1"))) .build(); Item item = new Item().setName("test"); itemAcl.applyTo(item); Item expectedItem = item.clone(); assertFalse(defAcl.applyToIfEnabled(item)); assertEquals(expectedItem, item); }