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