{
// Setup a server to accept compact protocol, and try to send it a message with a binary
// protocol client. Server should disconnect the client while client is trying to read the
// response, so we should get a TTransportException
try (ScopedServer server = new ScopedServer(new TCompactProtocol.Factory());
ThriftClientManager manager = new ThriftClientManager();
Scribe client = createScribeClient(manager, server, new TBinaryProtocol.Factory())) {
client.log(ImmutableList.of(new LogEntry("testCategory1", "testMessage1"),
new LogEntry("testCategory2", "testMessage2")));
}
}