I constated something strange : NewUserWizard is much more complex that PersonService.createPerson.
Particularly, NewUserWizard (executed from admin console) create a node with Path :
PATH:"/app:company_home/app:user_homes/sys:KXJWX/*"
where "KXJWX" is the homeSpaceName.
where as createPerson create a node with Path :
PATH:"/app:company_home/app:user_homes/cm:KXJWX/*"
Furthermore, createPerson considers the username+HomeSpaceName equals to the specified username if any (through parameters), where as NewUserWizard distinguish them.
It is strange that presentation layer do such complex task …
JUnit code, to create random users, might be more complex than I though…