Random random = new Random();
long requestId = random.nextLong();
String username = "ExtRA-ksret-" + random.nextInt();
String password = "foo123";
// Add a new user
EditUserRequest editUserRequest = new EditUserRequest(requestId, username, "CN=" + username, null, null, null, "EMPTY", "ENDUSER",
"AdminCA1", password, 10, 1, EditUserRequest.SOFTTOKENNAME_USERGENERATED, null);
SubMessages smgs = new SubMessages(null,null,null);
smgs.addSubMessage(editUserRequest);
msghome.create(username, smgs);
Message msg = waitForUser(username);