}
@Test
public void testDuplicateEntries() throws Exception {
Subject user1 = new Subject("user1");
Collection collection1 = new Collection("collection1");
Set<? extends Action> actions = EnumSet.allOf(SearchModelAction.class);
policyFile.addGroupsToUser(user1.getName(), true, "group1", "group1")
.addRolesToGroup("group1", true, "role1", "role1")
.addPermissionsToRole("role1", true, "collection=" + collection1.getName(),
"collection=" + collection1.getName());
policyFile.write(iniFile);
SearchPolicyFileBackend policy = new SearchPolicyFileBackend(initResource);
authzProvider = new LocalGroupResourceAuthorizationProvider(initResource, policy);
List<? extends Authorizable> authorizableHierarchy = ImmutableList.of(collection1);
Assert.assertTrue(authorizableHierarchy.toString(),