Fix the test.
Ensure that the message internals get copied as expected.
Add null check in asserts
Move code to the Proton 1.0-SNAPSHOT API