public void testContextClassLoaderUnset() throws Exception {
LocaleBeanUtilsBean beanOne = new LocaleBeanUtilsBean();
ContextClassLoaderLocal ccll = new ContextClassLoaderLocal();
ccll.set(beanOne);
assertEquals("Start thread gets right instance", beanOne, ccll.get());
ccll.unset();
assertTrue("Unset works", !beanOne.equals(ccll.get()));
}
private boolean isPre14JVM() {
// some pre 1.4 JVM have buggy WeakHashMap implementations