question: public void testSequenceCommand ( ) throws Throwable { ServerStateMachineContext context = mock ( ServerStateMachineContext . class ) ; ServerSessionContext session = new ServerSessionContext ( 10 , UUID . randomUUID ( ) , mock ( Log . class ) , context , 1000 ) ; assertEquals ( session . getRequestSequence ( ) , 0 ) ; AtomicBoolean complete = new AtomicBoolean ( ) ; session . registerRequest ( 2 , null ) ; assertFalse ( complete . get ( ) ) ; session . setRequestSequence ( 1 ) ; assertTrue ( complete . get ( ) ) ; }
target:  Tests sequencing commands through the session.