public void merge(AclActions actions) {
    mActions.or(actions.mActions);
  }
@Test
  public void merge() {
    AclActions actions = new AclActions();
    assertEquals(Mode.Bits.NONE, actions.toModeBits());

    // Merge empty actions.
    actions.merge(new AclActions());
    assertEquals(Mode.Bits.NONE, actions.toModeBits());

    // Merge read and write actions.
    AclActions readWrite = new AclActions();
    readWrite.add(AclAction.READ);
    readWrite.add(AclAction.WRITE);
    actions.merge(readWrite);
    assertEquals(Mode.Bits.READ_WRITE, actions.toModeBits());

    // Merge execute action.
    AclActions execute = new AclActions();
    execute.add(AclAction.EXECUTE);
    actions.merge(execute);
    assertEquals(Mode.Bits.ALL, actions.toModeBits());
  }