Empty empty = Empty.getDefaultInstance();
ChannelBuffer buf = (ChannelBuffer) encoder.encode(null, null, empty);
ProtobufDecoder decoder = new ProtobufDecoder();
decoder.addMessageType(Empty.getDefaultInstance());
Message message = (Message) decoder.decode(null, null, buf);
assertEquals(empty, message);
}
@Test
public void testQuery() throws Exception {