protected void setUp() throws Exception {
JournalTestHelper helper = new JournalTestHelper();
PersistenceAdapter adapter = helper.createPersistenceAdapter(JournalPersistenceAdapter.DEFAULT_JOURNAL_TYPE);
SimpleCachePersistenceAdapter cacheAdapter = new SimpleCachePersistenceAdapter(adapter);
cacheAdapter.setCacheSize(MESSAGE_COUNT);
broker = new BrokerContainerImpl("localhost");
broker.setPersistenceAdapter(cacheAdapter);
broker.start();
connectionFactory = new ActiveMQConnectionFactory(broker, "vm://localhost");