return "org/mule/test/transformers/expression-transformers-test.xml";
}
public void testTransformerConfig() throws Exception
{
ExpressionTransformer transformer = (ExpressionTransformer) muleContext.getRegistry().lookupTransformer("testTransformer");
assertNotNull(transformer);
assertNotNull(transformer.getArguments());
assertEquals(2, transformer.getArguments().size());
ExpressionArgument arg1 = transformer.getArguments().get(0);
assertEquals("payload", arg1.getEvaluator());
assertEquals("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());
}