What is this test supposed to test? Simply the sequence of states or also some multi-threaded stuff? If so, what exactly? Also a [`CountDownLatch`](http://docs.oracle.com/javase/6/docs/api/java/util/concurrent/CountDownLatch.html) is probably better suited to the handoff than an `AtomicBoolean` with empty loops.