assertTrue("Incorrect event", "Test Message".equals(events.get(0).getMessage().getFormattedMessage()));
}
@Test
public void testReconnect() throws Exception {
context.rebind(TOPIC_NAME, new MockTopic(TOPIC_NAME));
final AbstractJMSReceiver receiver = new JMSTopicReceiver(FACTORY_NAME, TOPIC_NAME, null, null);
ThreadContext.put("appender", "Failover");
final Logger logger = LogManager.getLogger(JMSTopicFailoverTest.class);
logger.debug("Test Message");
final List<LogEvent> events = app.getEvents();