}
@Test
public void testDecodeEmpty() throws Exception {
ProtobufEncoder encoder = new ProtobufEncoder();
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);