Code example for AtomicReference

Methods: compareAndSetget