mockMessage.expectAndReturn("getPropertyNames",
IteratorUtils.asEnumeration(IteratorUtils.emptyIterator()));
mockMessage.expectAndReturn("getObjectProperty", "JMS_CUSTOM_PROPERTY", "customValue");
ConstraintMatcher setPropertyMatcher = new FullConstraintMatcher(new Constraint[]{
new IsEqual("JMS_CUSTOM_PROPERTY"), new IsEqual("customValue")});
mockMessage.expect("setObjectProperty", setPropertyMatcher);
Message mockTextMessage = (Message)mockMessage.proxy();
MuleMessage msg = new DefaultMuleMessage(mockTextMessage, muleContext);