*/
public class GarbageCollectionTest extends TestCase {
public void testDefaultStreamFactory () {
final DefaultStreamFactory strongRefToStreamFactory = new DefaultStreamFactory();
Kryo kryo = new Kryo(new DefaultClassResolver(), new MapReferenceResolver(), strongRefToStreamFactory);
WeakReference<Kryo> kryoWeakRef = new WeakReference<Kryo>(kryo);
kryo = null; // remove strong ref, now kryo is only weak-reachable
reclaim(kryoWeakRef);
}