question: public void testSequenceIndexQuery ( ) throws Throwable { ServerStateMachineContext context = mock ( ServerStateMachineContext . class ) ; ServerSessionContext session = new ServerSessionContext ( 10 , UUID . randomUUID ( ) , mock ( Log . class ) , context , 1000 ) ; AtomicBoolean complete = new AtomicBoolean ( ) ; session . registerIndexQuery ( 10 , null ) ; assertFalse ( complete . get ( ) ) ; session . setLastApplied ( 9 ) ; assertFalse ( complete . get ( ) ) ; session . setLastApplied ( 10 ) ; assertTrue ( complete . get ( ) ) ; }
target:  Tests sequencing an index query.