{
//Though the data is simple we are testing two things -
//1) Mixins are recognised by the Transformer resolver
//2) that we successfully marshal and marshal an object that is not annotated directly
MuleMessage message = new DefaultMuleMessage(APPLE_JSON, muleContext);
Apple apple = (Apple) message.getPayload(DataTypeFactory.create(Apple.class));
assertNotNull(apple);
assertFalse(apple.isWashed());
assertTrue(apple.isBitten());
message = new DefaultMuleMessage(apple, muleContext);
String json = message.getPayload(DataType.STRING_DATA_TYPE);
assertNotNull(json);
JsonData data = new JsonData(json);