final StatusConsoleListener l = new StatusConsoleListener(Level.ERROR);
StatusLogger.getLogger().registerListener(l);
MockContextFactory.setAsInitial();
context = new InitialContext();
context.rebind(FACTORY_NAME, new QueueConnectionFactoryImpl() );
context.rebind(QUEUE_NAME, new MockQueue(QUEUE_NAME));
((LoggerContext) LogManager.getContext()).reconfigure();
receiver = new JMSQueueReceiver(FACTORY_NAME, QUEUE_NAME, null, null);
}