contextClassLoader = Thread.currentThread().getContextClassLoader();
}
};
ThreadContextClassLoaderHttpServiceInvoker invoker = new ThreadContextClassLoaderHttpServiceInvoker(servlet, true, classLoader);
invoker.invoke(EasyMock.createMock(HttpServletRequest.class), EasyMock.createMock(HttpServletResponse.class), null);
//check that the context class loader was correctly set in
assertSame(contextClassLoader, classLoader);
//assert that the current thread now has the original class loader