this.context = EasyMock.createMock(Context.class);
EasyMock.expect(context.lookup("ConnectionFactory")).andReturn(factory).anyTimes();
EasyMock.replay(context);
ChainedProperties props = new ChainedProperties("process.email.conf", ClassLoaderUtil.getClassLoader(null, getClass(), false ));
setEmailHost(props.getProperty("host", "locahost"));
setEmailPort(props.getProperty("port", "2345"));
Properties serverProperties = new Properties();
serverProperties.setProperty("JMSTaskServer.connectionFactory", "ConnectionFactory");
serverProperties.setProperty("JMSTaskServer.transacted", "true");
serverProperties.setProperty("JMSTaskServer.acknowledgeMode", "AUTO_ACKNOWLEDGE");