    @Test
    public void applyErrorWarn() {

        // given
        LogDefinition definition = givenLogDefinition(ERROR, WARN);
        // when
        LogLevel level = expectedLevelResolver.apply(definition);
        // then
        assertThat(level, is(WARN));
    }