testBeanBuilderTransformerConfig("testTransformer3Inline");
}
private void testBeanBuilderTransformerConfig(String transformerName) throws Exception
{
BeanBuilderTransformer transformer = (BeanBuilderTransformer) muleContext.getRegistry().lookupTransformer(transformerName);
assertNotNull(transformer);
assertNotNull(transformer.getArguments());
assertEquals(3, transformer.getArguments().size());
ExpressionArgument arg1 = transformer.getArguments().get(0);
assertEquals("brand", arg1.getName());
assertEquals("message", arg1.getEvaluator());
assertEquals("payload", arg1.getExpression());
assertFalse(arg1.isOptional());
ExpressionArgument arg2 = transformer.getArguments().get(1);
assertEquals("segments", arg2.getName());
assertEquals("header", arg2.getEvaluator());
assertEquals("SEGMENTS", arg2.getExpression());
assertTrue(arg2.isOptional());
}