group1Instance.addMember(user2Entry);
group1Instance.addMember(user4Entry);
//Switch things around, change groups and members to odd numbered nested
//groups and odd numbered members via ldap modify.
LinkedList<Modification> mods = new LinkedList<Modification>();
Attribute g1 = Attributes.create("member", "cn=group 1,ou=Groups,o=test");
Attribute g2 = Attributes.create("member", "cn=group 2,ou=Groups,o=test");
Attribute g3 = Attributes.create("member", "cn=group 3,ou=Groups,o=test");
Attribute g4 = Attributes.create("member", "cn=group 4,ou=Groups,o=test");
Attribute u1 = Attributes.create("member", "uid=user.1,ou=People,o=test");
Attribute u2 = Attributes.create("member", "uid=user.2,ou=People,o=test");
Attribute u3 = Attributes.create("member", "uid=user.3,ou=People,o=test");
Attribute u4 = Attributes.create("member", "uid=user.4,ou=People,o=test");
Attribute u5 = Attributes.create("member", "uid=user.5,ou=People,o=test");
//Delete even groups and users.
mods.add(new Modification(ModificationType.DELETE, g2));
mods.add(new Modification(ModificationType.DELETE, g4));
mods.add(new Modification(ModificationType.DELETE, u2));
mods.add(new Modification(ModificationType.DELETE, u4));