@Test(expected = AclException.class)
public void testMergeAclDefaultEntriesResultTooLarge() throws AclException {

  ImmutableList.Builder<AclEntry> aclBuilder =
      new ImmutableList.Builder<AclEntry>()
      .add(aclEntry(DEFAULT, USER, ALL));
  for (int i = 1; i <= 28; ++i) {
    aclBuilder.add(aclEntry(DEFAULT, USER, "user" + i, READ));
  }
  aclBuilder
  .add(aclEntry(DEFAULT, GROUP, READ))
  .add(aclEntry(DEFAULT, MASK, READ))
  .add(aclEntry(DEFAULT, OTHER, NONE));
  List<AclEntry> existing = aclBuilder.build();
  List<AclEntry> aclSpec = Lists.newArrayList(
       aclEntry(DEFAULT, USER, "bruce", READ));
  mergeAclEntries(existing, aclSpec);
}