Github user gemmellr commented on the pull request: https://github.com/apache/qpid-proton/pull/54#issuecomment-171998673 The other sections don't exist on the message unless something is done to create them (they are all optional) so they wont be encoded in that case. I added a test showing that, which happens to do a simplistic variant of the third option in the process. I'd suggest that you probably want to add such a test on your side as well anyway.
--- If your project is set up for it, you can reply to this email and have your reply appear on GitHub as well. If your project does not have this feature enabled and wishes so, or if the feature is enabled but not working, please contact infrastructure at infrastruct...@apache.org or file a JIRA ticket with INFRA. ---