Just say:

assertSame(ref1, ref2) and you are done.

Rename the test to "testProxiesAreCached" or something.