    @Test
    public void testUseLevelAsKey() throws IOException
    {

        this.channel.queueUnbind(QUEUE, EXCHANGE, KEY);
        this.channel.queueBind(QUEUE, EXCHANGE, "ERROR");
        final AmqpAppender appender = createAppenderWithInlineConfiguration();
        appender.setUseLevelAsKey(true);
        createLogger(appender).error(this.message);
    }