func initAclAndEntries(length int) (*en.EntityManager, *Acl, AclTestMap, error) {
	var entries AclTestMap
	el := initEntityManager()
	a := NewACL()
	entries = make(AclTestMap)
	for i := 0; i < length; i++ {
		name := "name[0]-a" + strconv.Itoa(i)
		el.AddResource(name)
		e, err := NewEntry(name)
		if err != nil {
			return nil, nil, entries, err
		}
		if e == nil {
			return nil, nil, entries, fmt.Errorf("can't add the new aclAclEntry '%v' to the ACL list", name)
		}
		entries[e] = true
	}
	return el, a, entries, nil
}
Create a new ACL, add a given number of entities to Entity list,
Add each new entity to the new ACL
package acl
import (
	"fmt"
	"io/ioutil"
	"strconv"
	"testing"
	"reflect"
	defs "github.com/ibm-security-innovation/libsecurity-go/defs"
	en "github.com/ibm-security-innovation/libsecurity-go/entity"
	logger "github.com/ibm-security-innovation/libsecurity-go/logger"
)
const (
	userName     = "user1"
	groupName    = "Group1"
	resourceName = "disk"
)
var ()
type aclTestEntry struct {
	name        string  
	permissions []en.Permission
}
type expectTest struct {
	name        string  
	permissions []en.Permission
}
type expectWhoUsePermissions struct {
	permission string
	names      []string
}
type testGroup struct {
	name    string
	members []string
}
type AclTestMap map[*Entry]bool
func init() {
	logger.Init(ioutil.Discard, ioutil.Discard, ioutil.Discard, ioutil.Discard)
}
func initEntityManager() *en.EntityManager {
	el := en.New()
	el.AddResource(resourceName)
	return el
}