assert txInterceptor.getNext().equals(invalidationInterceptor);
}
public void testGetInterceptorsWhichExtend()
{
InvocationContextInterceptor ic2 = (InvocationContextInterceptor) create(InvocationContextInterceptor.class);
chain.appendIntereceptor(ic2);
List<CommandInterceptor> result = chain.getInterceptorsWhichExtend(InvocationContextInterceptor.class);
assert result.contains(icInterceptor);
assert result.contains(ic2);
assert result.size() == 2;