package com.muleinaction.pattern.bridge; import static org.hamcrest.CoreMatchers.instanceOf; import static org.hamcrest.CoreMatchers.is; import static org.hamcrest.CoreMatchers.not; import static org.junit.Assert.assertThat; import org.junit.Test; import org.mule.api.ExceptionPayload; import org.mule.api.MuleMessage; import org.mule.module.client.MuleClient; import org.mule.tck.junit4.FunctionalTestCase; public class PatternBridgeTestCase extends FunctionalTestCase { @Override protected String getConfigResources() { return "pattern/bridge/pattern-bridge.xml"; } @Test public void testSimpleValidator() throws Exception { MuleClient muleClient = new MuleClient(muleContext); MuleMessage result = muleClient.send("http://localhost:8888", "", null); assertThat(result.getPayload(), is(not(instanceOf(ExceptionPayload.class)))); } }