{
SwiftScribe scribeService = new SwiftScribe();
EventHandler eventHandler = new EventHandler(niftyProcessor);
EventHandler secondHandler = new EventHandler(niftyProcessor);
List<EventHandler> handlers = ImmutableList.of(eventHandler, secondHandler);
final ThriftServiceProcessor processor = new ThriftServiceProcessor(new ThriftCodecManager(), handlers, scribeService);
List<LogEntry> messages = niftyProcessor ?
testProcessor(processor) : testProcessor(NiftyProcessorAdapters.processorToTProcessor(processor));
assertEquals(scribeService.getMessages(), newArrayList(concat(toSwiftLogEntry(messages), toSwiftLogEntry(messages))));
assertTrue(eventHandler.validate(2));