void () { final MyUpdate twin1 = new MyUpdate("twin"); final MyUpdate twin2 = new MyUpdate("twin"); final MyQueue queue = new MyQueue(); queue.queue(twin1); queue.queue(twin2); assertFalse(twin1.isExecuted()); assertFalse(twin2.isExecuted()); queue.showNotify(); waitForExecution(queue); assertAfterProcessing(twin1, false, true); assertAfterProcessing(twin2, true, true); }