Code example for AtomicReference

Methods: compareAndSet