@Test
public void testLogThrowable() throws ConfigError, FieldConvertError {

    ByteArrayOutputStream data = new ByteArrayOutputStream();
    LogFactory mockLogFactory = createLogFactory(data);
    createSessionAndGenerateException(mockLogFactory);
    String message = new String(data.toByteArray());
    assertTrue(message.contains("IOException"));
}