// create the JournalConsumer and run it.
JournalConsumer consumer =
new JournalConsumer(parameters, role, server);
startConsumerThread(consumer);
waitWhileThreadRuns(WAIT_INTERVAL);
consumer.shutdown();
assertEquals("Expected to see 3 ingests", 3, delegate
.getCallCount());
assertEquals("Journal files not all gone",
0,