tcmb.put("/a", "key", clazz1.newInstance());
Thread.currentThread().setContextClassLoader(ClassLoader.getSystemClassLoader());
try
{
Global object = (Global)tcmb.get("/a", "key");
fail("Should have produced a ClassCastException");
}
catch(ClassCastException cce)
{
if (cce.getMessage() != null) assertTrue(cce.getMessage().equals(INSTANCE_CLASS_NAME));