AmqpAppender extends AppenderBase<ILoggingEvent> { public void setUseLevelAsPriority(final boolean useLevelAsPriority) { this.useLevelAsPriority = useLevelAsPriority; }  @Override void start(); @Override void stop(); void setUsername(final String username); void setPassword(final String password); void setVirtualHost(final String virtualHost); void setHost(final String host); void setPort(final int port); void setExchange(final String exchange); void setKey(final String key); void setUseLevelAsKey(final boolean useLevelAsKey); void setUseLevelAsPriority(final boolean useLevelAsPriority); void setContentType(final String contentType); void setEncoding(final String encoding); void setPersistent(boolean persistent); @Override String toString();  }
@Test public void testUseLevelAsPriority() { setTestAssertion(new TestAssertion() { @Override public void doAssert(final Envelope envelope, final BasicProperties properties, final byte[] body) { assertEquals(new Integer(7), properties.priority); } }); final AmqpAppender appender = createAppenderWithInlineConfiguration(); appender.setUseLevelAsPriority(true); createLogger(appender).warn(this.message); }