@Test
public void testWarnFormat()
{

    inner.setLevel(Level.WARNING);
    // message-only version
    logger.warn("hello, %s", "you");
    assertLog(Level.WARNING, "hello, you");
    // throwable with message
    @SuppressWarnings("ThrowableInstanceNeverThrown")
    Throwable exception = new Throwable();
    logger.warn(exception, "got exception: %s", "foo");
    assertLog(Level.WARNING, "got exception: foo", exception);
}