BeanBuilderTransformer transformer = (BeanBuilderTransformer) muleContext.getRegistry()
.lookupTransformer(name);
assertNotNull(transformer);
assertNotNull(transformer.getArguments());
assertEquals(3, transformer.getArguments().size());
ExpressionArgument arg1 = transformer.getArguments().get(0);
assertEquals("brand", arg1.getName());
assertNull(arg1.getEvaluator());
assertEquals("payload", arg1.getExpression());
assertFalse(arg1.isOptional());
ExpressionArgument arg2 = transformer.getArguments().get(1);
assertEquals("segments", arg2.getName());
assertNull(arg2.getEvaluator());
assertEquals("message.outboundProperties['SEGMENTS']", arg2.getExpression());
assertTrue(arg2.isOptional());
}