// remember the z-folder for later removal
toRemove.add((NodeImpl) u.getNode().getParent().getParent());
assertEquals(usersPath + "/z/zz/z", u.getNode().getPath());
Map<String, String> m = new ListOrderedMap();
m.put("zz", "/z/zz/zz");
// zzz -> potential conflict: must be added to 3rd level
m.put("zzz", "/z/zz/zzz/zzz");
// more users -> added to 2nd level until max-size (5) is reached.
m.put("zzABC", "/z/zz/zzABC");
m.put("zzzh", "/z/zz/zzzh");
// max-size on level 2 (zz) is reached -> added to 3rd level.
m.put("zzzzZ", "/z/zz/zzz/zzzzZ");
m.put("zzh", "/z/zz/zzh/zzh");
m.put("zzXyzzz", "/z/zz/zzX/zzXyzzz");
// zzzz, zzza -> potential conflicts on the 3rd level
// -> must be added to 4th level
m.put("zzzz", "/z/zz/zzz/zzzz/zzzz");
m.put("zzza", "/z/zz/zzz/zzza/zzza");
// zA -> to short for 3rd -> must be inserted at the 2nd level.
m.put("zA", "/z/zA/zA");
for (String uid : m.keySet()) {
u = (UserImpl) uMgr.createUser(uid, uid);
save(s);
assertEquals(usersPath + m.get(uid), u.getNode().getPath());
}
}