Avoid use of fragile Swing classes in tests (for compatibility with JDK 8u40)

Issue: SPR-12235
Remove outdated references to ContextLoaderServlet

Issue: SPR-7725