return "org/mule/test/transformers/expression-transformers-el-test.xml";
}
private void testTransformerConfig(String name) throws Exception
{
ExpressionTransformer transformer = (ExpressionTransformer) muleContext.getRegistry()
.lookupTransformer(name);
assertNotNull(transformer);
assertNotNull(transformer.getArguments());
assertEquals(2, transformer.getArguments().size());
ExpressionArgument arg1 = transformer.getArguments().get(0);
assertNull(arg1.getEvaluator());
assertEquals("message.payloadAs(org.mule.tck.testmodels.fruit.FruitBasket)", arg1.getExpression());
assertFalse(arg1.isOptional());
ExpressionArgument arg2 = transformer.getArguments().get(1);
assertEquals("headers", arg2.getEvaluator());
assertEquals("foo,bar?", arg2.getExpression());
assertTrue(arg2.isOptional());
}