}
}
public void testAddRole() {
User user = new User();
assertEquals("", user.getRoles());
user.addRole(null);
assertEquals("", user.getRoles());
user.addRole("");
assertEquals("", user.getRoles());
user.addRole("toto");
assertEquals("toto", user.getRoles());
user.addRole("plop ");
assertEquals("plop,toto", user.getRoles());
user.addRole(" pika");
assertEquals("pika,plop,toto", user.getRoles());
user.addRole("pika");
assertEquals("pika,plop,toto", user.getRoles());
user.addRole(" pikaron , ronron ");
assertEquals("pika,plop,toto", user.getRoles());
user.addRole("ronron ,");
assertEquals("pika,plop,toto", user.getRoles());
user.addRole(",ronron,");
assertEquals("pika,plop,toto", user.getRoles());
}