public void testPacketWithMessageProperties() throws Exception
{
String uuid = UUID.getUUID();
Message payload = (Message) getValidTransportMessage();
payload.setSubject("the subject");
payload.setProperty("foo", "foo-value");
payload.setPacketID(uuid);
MuleMessageFactory factory = createMuleMessageFactory();
MuleMessage message = factory.create(payload, encoding);
assertNotNull(message);
assertEquals(Message.class, message.getPayload().getClass());