@Test
public void testInsertAtEnd() throws Exception {
Operation op = newOperation("foo");
InvocationChain chain = new InvocationChainImpl(op, op, true);
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());
}