public void testLogParamSubstitutionWithThrowable() throws Exception {
Handler handler = EasyMock.createNiceMock(Handler.class);
LOG.addHandler(handler);
// handler called *after* localization of message
Exception ex = new Exception();
LogRecord record = new LogRecord(Level.SEVERE, "subbed in 1 only");
record.setThrown(ex);
EasyMock.reportMatcher(new LogRecordMatcher(record));
handler.publish(record);
EasyMock.replay(handler);
LogUtils.log(LOG, Level.SEVERE, "SUB1_MSG", ex, 1);
EasyMock.verify(handler);