@Test
public void chainWithSource() {
String processingChainUnderTest = "time | transform --expression='T(org.joda.time.format.DateTimeFormat).forPattern(\"yyyy-MM-dd HH:mm:ss\").parseDateTime(payload)'";
SingleNodeProcessingChainConsumer chain = chainConsumer(application, "dateToDateTime", processingChainUnderTest);
Object payload = chain.receivePayload(RECEIVE_TIMEOUT);
assertTrue(payload instanceof DateTime);
chain.destroy();
}