*/
public class InvocationChainImplTestCase extends TestCase {
public void testInsertAtEnd() throws Exception {
InvocationChain chain = new InvocationChainImpl(new OperationImpl("foo"));
Interceptor inter2 = new MockInterceptor();
Interceptor inter1 = new MockInterceptor();
chain.addInterceptor(inter1);
chain.addInterceptor(inter2);
Interceptor head = (Interceptor)chain.getHeadInvoker();
assertEquals(inter1, head);
assertEquals(inter2, head.getNext());
assertEquals(inter2, chain.getTailInvoker());
}