private List<LogEntry> testProcessor(NiftyProcessor processor)
throws Exception
{
ImmutableList<LogEntry> messages = ImmutableList.of(
new LogEntry("hello", "world"),
new LogEntry("bye", "world")
);
try (ThriftServer server = new ThriftServer(processor).start()) {
assertEquals(logThrift(server.getPort(), messages), ResultCode.OK);
assertEquals(logSwift(server.getPort(), toSwiftLogEntry(messages)), com.facebook.swift.service.ResultCode.OK);