### Question:
UIRepositoryObjectAcls extends XulEventSourceAdapter implements java.io.Serializable { 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; } UIRepositoryObjectAcls(); void setObjectAcl( ObjectAcl obj ); ObjectAcl getObjectAcl(); List<UIRepositoryObjectAcl> getAcls(); void setAcls( List<UIRepositoryObjectAcl> acls ); void addAcls( List<UIRepositoryObjectAcl> aclsToAdd ); void addDefaultAcls( List<UIRepositoryObjectAcl> aclsToAdd ); void addAcl( UIRepositoryObjectAcl aclToAdd ); void addDefaultAcl( UIRepositoryObjectAcl aclToAdd ); void removeAcls( List<UIRepositoryObjectAcl> aclsToRemove ); void removeAcl( String recipientName ); void removeSelectedAcls(); void updateAcl( UIRepositoryObjectAcl aclToUpdate ); UIRepositoryObjectAcl getAcl( String recipient ); List<UIRepositoryObjectAcl> getSelectedAclList(); void setSelectedAclList( List<UIRepositoryObjectAcl> list ); boolean isEntriesInheriting(); void setEntriesInheriting( boolean entriesInheriting ); ObjectRecipient getOwner(); void setRemoveEnabled( boolean removeEnabled ); boolean isRemoveEnabled(); int getAceIndex( ObjectAce ace ); ObjectAce getAceAtIndex( int index ); void setModelDirty( boolean modelDirty ); boolean isModelDirty(); boolean hasManageAclAccess(); void setHasManageAclAccess( boolean hasManageAclAccess ); void clear();  }### Answer:
@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 ) ) ); }