BasicRequestContextImpl requestContext = new BasicRequestContextImpl(wrappedRequestContext, new Object[] {
new MyInterceptor(1), new MyInterceptor(2), new MyInterceptor(3) });
requestContext.prepare();
requestContext.commitHeaders();
requestContext.commit();
assertArrayEquals(new Integer[] { 1, 2, 3 }, prepares.toArray(new Integer[0]));
assertArrayEquals(new Integer[] { 3, 2, 1 }, commitHeaders.toArray(new Integer[0]));
assertArrayEquals(new Integer[] { 3, 2, 1 }, commits.toArray(new Integer[0]));
}