public class BridgeBuilderTestCase extends AbstractMuleTestCase
{
public void testFullConfiguration() throws Exception
{
Bridge bridge = new BridgeBuilder().name("test-bridge-full")
.inboundAddress("test://foo.in")
.transformers(new StringAppendTransformer("bar"))
.responseTransformers(new ObjectToByteArray(), new GZipCompressTransformer())
.outboundAddress("test://foo.out")
.exchangePattern(MessageExchangePattern.REQUEST_RESPONSE)
.transacted(false)
.exceptionStrategy(new DefaultMessagingExceptionStrategy(muleContext, true))
.build(muleContext);
assertEquals("test-bridge-full", bridge.getName());
}