Updated AtomicLongTest.java to use the Command pattern to simplify the code.