} catch (Exception ex) {
logger.warn("Exception during test tearDown", ex);
}
JahiaUserManagerService userManagerService = ServicesRegistry.getInstance().getJahiaUserManagerService();
JahiaGroupManagerService groupManagerService = ServicesRegistry.getInstance().getJahiaGroupManagerService();
groupManagerService.deleteGroup(groupManagerService.lookupGroup(site.getID(), "taskUsersGroup"));
userManagerService.deleteUser(userManagerService.lookupUser("johndoe"));
userManagerService.deleteUser(userManagerService.lookupUser("johnsmoe"));
JCRSessionWrapper session = JCRSessionFactory.getInstance().getCurrentUserSession();
session.save();
JCRSessionFactory.getInstance().closeAllSessions();