WeakReference<IExpiring> testRef = new WeakReference<>(sessionObject);
assertNotNull(testRef.get());
sessionObject.activated();
sessionObject.hasBeenActive();
sessionObject.hasBeenActive();
sessionObject.expire();
sessionObject = null;
System.gc();
assertNull("There should be no references left to the object.",
testRef.get());
}