void () { SubmissionReceipt receiptWhenAdded = myQueue.addTask(new LoggingTask(1, null, null)); SubmissionReceipt receiptWhenQueried = myQueue.getLatestSubmissionReceipt(); assertEquals(receiptWhenAdded, receiptWhenQueried); assertFalse(receiptWhenAdded.isAfter(receiptWhenQueried)); assertFalse(receiptWhenQueried.isAfter(receiptWhenAdded)); }