@Test
public void appliesTransformerSkipsConverter() throws MuleException
{
// Transformer(B -> D) Converter(C->D), payload B: converts B->D, skips converter C->D, resulting output is of the expected type -> OK
Transformer transformer1 = new MockTransformerBuilder().from(dataTypeB).to(dataTypeD).returning(new D()).build();
Transformer converter2 = new MockConverterBuilder().from(dataTypeC).to(dataTypeD).build();
DefaultMuleMessage message = new DefaultMuleMessage(new B(), muleContext);
message.applyTransformers(null, transformer1, converter2);
assertTrue(message.getPayload() instanceof D);