User u = null;
Group gr = null;
try {
u = userMgr.createUser(uid, buildPassword(uid, true), p, null);
gr = userMgr.createGroup(new TestPrincipal(uid));
String msg = "Creating a Group with a principal-name that exists as UserID -> must create new GroupID but keep PrincipalName.";
assertFalse(msg, gr.getID().equals(gr.getPrincipal().getName()));
assertFalse(msg, gr.getID().equals(uid));
assertFalse(msg, gr.getID().equals(u.getID()));