Protocol serialization test.