@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));
  }
}