// MockContextFactory becomes the primary JNDI provider
StatusConsoleListener l = new StatusConsoleListener(Level.ERROR);
StatusLogger.getLogger().registerListener(l);
MockContextFactory.setAsInitial();
context = new InitialContext();
context.rebind(FACTORY_NAME, new TopicConnectionFactoryImpl() );
context.rebind(TOPIC_NAME, new MockTopic(TOPIC_NAME) );
((LoggerContext) LogManager.getContext()).reconfigure();
receiver = new JMSTopicReceiver(FACTORY_NAME, TOPIC_NAME, null, null);
}