* tests/weakref.java: New test for weak references.