public void setLevel() {
List<LoggerTO> loggers = loggerService.list(LoggerType.NORMAL);
assertNotNull(loggers);
int startSize = loggers.size();
LoggerTO logger = new LoggerTO();
logger.setName("TEST");
logger.setLevel(SyncopeLoggerLevel.INFO);
loggerService.update(LoggerType.NORMAL, logger.getName(), logger);
logger = loggerService.read(LoggerType.NORMAL, logger.getName());
assertNotNull(logger);
assertEquals(SyncopeLoggerLevel.INFO, logger.getLevel());
loggers = loggerService.list(LoggerType.NORMAL);
assertNotNull(loggers);
assertEquals(startSize + 1, loggers.size());