List<LoggerTO> loggers =
Arrays.asList(restTemplate.getForObject(BASE_URL + "logger/log/list", LoggerTO[].class));
assertNotNull(loggers);
int startSize = loggers.size();
LoggerTO logger = restTemplate.postForObject(BASE_URL + "logger/log/{name}/{level}", null, LoggerTO.class,
"TEST", "INFO");
assertNotNull(logger);
assertEquals(SyncopeLoggerLevel.INFO, logger.getLevel());
loggers = Arrays.asList(restTemplate.getForObject(BASE_URL + "logger/log/list", LoggerTO[].class));
assertNotNull(loggers);
assertEquals(startSize + 1, loggers.size());
}