JournalWriter writer =
JournalWriter.getInstance(parameters, DUMMY_ROLE, server);
assertSame("JournalWriter is the wrong class",
MulticastJournalWriter.class,
writer.getClass());
MulticastJournalWriter mjw = (MulticastJournalWriter) writer;
Map<String, Transport> transports = mjw.getTransports();
assertEquals("should be two transports", 2, transports.size());
assertEquals("transport one class", MockTransport.class, transports
.get("one").getClass());
assertEquals("transport one crucial flag", false, transports.get("one")
.isCrucial());