protected void configurePersistence(BrokerService brokerService) throws Exception {
    adapter = (KahaDBPersistenceAdapter) brokerService.getPersistenceAdapter();

    // ensure there are a bunch of data files but multiple entries in each
    adapter.setJournalMaxFileLength(1024 * 20);

    // speed up the test case, checkpoint an cleanup early and often
    adapter.setCheckpointInterval(5000);
    adapter.setCleanupInterval(5000);

    adapter.setCheckForCorruptJournalFiles(true);
    adapter.setIgnoreMissingJournalfiles(true);
  }