Atomic Test with AtomicInteger.
Java Concurrency volatile, lock, ThreadLocal and synchronized.