### Question:
Configuration { public Logger.Severity getLogLevel() { return logLevel; } Configuration(); List<String> getOverrides(); boolean isEnabled(); ExecutionFrequency getMaxFrequency(); String getHeapDumpName(); File getHeapDumpFolder(); Logger.Severity getLogLevel(); long getCheckIntervalInMillis(); UsageThresholdConfiguration getHeapMemoryUsageThreshold(); UsageThresholdConfiguration getCodeCacheMemoryUsageThreshold(); UsageThresholdConfiguration getMetaspaceMemoryUsageThreshold(); UsageThresholdConfiguration getPermGenMemoryUsageThreshold(); UsageThresholdConfiguration getCompressedClassSpaceMemoryUsageThreshold(); UsageThresholdConfiguration getCodeHeapNonNMethodsMemoryUsageThreshold(); UsageThresholdConfiguration getCodeHeapNonProfiledNMethodsMemoryUsageThreshold(); UsageThresholdConfiguration getCodeHeapProfiledNMethodsMemoryUsageThreshold(); UsageThresholdConfiguration getEdenSpaceMemoryUsageThreshold(); UsageThresholdConfiguration getSurvivorSpaceMemoryUsageThreshold(); UsageThresholdConfiguration getOldGenSpaceMemoryUsageThreshold(); UsageThresholdConfiguration getTenuredGenSpaceMemoryUsageThreshold(); String getExecuteBefore(); String getExecuteAfter(); String getExecuteOnShutDown(); String getCommandInterpreter(); static final Logger.Severity DEFAULT_LOG_LEVEL; static final String DEFAULT_NAME_PATTERN; }### Answer:
@Test public void testValidLogLevels() { for (final Logger.Severity severity : Logger.Severity.values()) { temporarySystemProperties.set(Property.LOG_LEVEL.getQualifiedName()) .to(severity.name()); final Configuration configuration = Configuration.Builder.initializeFromSystemProperties(logger).build(); assertThat(configuration.getLogLevel(), is(severity)); } }