public int getAceIndex( ObjectAce ace ) {
    List<ObjectAce> aceList = obj.getAces();
    for ( int i = 0; i < aceList.size(); i++ ) {
      if ( ace.equals( aceList.get( i ) ) ) {
        return i;
      }
    }
    return -1;
  }
@Test
  public void testGetAceIndex() {

    List<UIRepositoryObjectAcl> originalUIAcls =
        Arrays.asList( new UIRepositoryObjectAcl[] { objectAcl1, objectAcl2, objectAcl3 } );

    repositoryObjectAcls.addAcls( originalUIAcls );
    int i = repositoryObjectAcls.getAceIndex( objectAcl2.getAce() );
    assertTrue( objectAcl2.equals( repositoryObjectAcls.getAcls().get( i ) ) );

  }