public static <T> boolean isReferringTo(final Reference<T> ref, final T obj)
    {
        return ref.get() == obj;
    }
@Test
    void validateIsReferringTo()
    {
        final Long objOne = 42L;
        final Long objTwo = 43L; // Need different value to make sure it is a different instance...
        final WeakReference<Long> ref = new WeakReference<>(objOne);
        assertTrue(References.isReferringTo(ref, objOne));
        assertFalse(References.isReferringTo(ref, objTwo));
    }