}
}
@Test
public void testGroupCRUD() throws RedmineException {
final Group template = GroupFactory.create();
template.setName("Template group " + System.currentTimeMillis());
final Group created = userManager.createGroup(template);
try {
assertEquals(template.getName(), created.getName());
final Group loaded = userManager.getGroupById(created.getId());
assertEquals(template.getName(), loaded.getName());
final Group update = GroupFactory.create(loaded.getId());
update.setName("Group update " + System.currentTimeMillis());
userManager.update(update);
final Group loaded2 = userManager.getGroupById(created.getId());
assertEquals(update.getName(), loaded2.getName());
} finally {
userManager.deleteGroup(created);
}
try {