@Test
public void testAclResolution() {

  long perm;
  FsPermission p1 = new FsPermission((short)0755);
  FileStatus fileStatus = file("dingo", "dingo", p1);
  perm = ugi.getPermissionsProto(fileStatus, null);
  match(perm, p1);
  AclEntry aclEntry = new AclEntry.Builder()
      .setType(AclEntryType.USER)
      .setScope(AclEntryScope.ACCESS)
      .setPermission(FsAction.ALL)
      .setName("dingo")
      .build();
  AclStatus aclStatus = new AclStatus.Builder()
      .owner("dingo")
      .group(("dingo"))
      .addEntry(aclEntry)
      .setPermission(p1)
      .build();
  perm = ugi.getPermissionsProto(null, aclStatus);
  match(perm, p1);
}