1
2
3
4
5
6
7 package org.mule.config.spring;
8
9 import org.mule.module.client.MuleClient;
10 import org.mule.api.MuleException;
11
12 import org.junit.Test;
13
14 public class NamedInterceptorTestCase extends AbstractInterceptorTestCase
15 {
16
17 @Override
18 protected String getConfigResources()
19 {
20 return "org/mule/config/spring/named-interceptor-test.xml";
21 }
22
23 @Test
24 public void testInterceptor() throws MuleException, InterruptedException
25 {
26 MuleClient client = new MuleClient(muleContext);
27 client.send("vm://in", MESSAGE, null);
28 assertMessageIntercepted();
29 }
30
31 }