public void testReference() throws Exception
{
Object inObject = createBigObject();
Object outObject;
MapCache mapCache;
SoftCache softCache;
mapCache = new MapCache(new Hashtable());
softCache = new SoftCache(mapCache);
softCache.addObject("key", inObject);
outObject = mapCache.getObject("key");
assertTrue("outObject instanceof Reference", outObject instanceof Reference);
assertTrue("cache2.getObject('key') == inObject", softCache.getObject("key") == inObject);
outObject = null;