@Test
public void testResponseAdaptorNestedChainReturnsNull() throws MuleException, Exception
{
DefaultMessageProcessorChainBuilder builder = new DefaultMessageProcessorChainBuilder();
builder.chain(
new StringAppendTransformer("1"),
new ResponseMessageProcessorAdapter(new DefaultMessageProcessorChainBuilder().chain(
new StringAppendTransformer("a"), new StringAppendTransformer("b"), new ReturnNullMP())
.build()), new StringAppendTransformer("2"));
assertEquals("012", builder.build().process(getTestEventUsingFlow("0")).getMessageAsString());
}