public void test(TestHarness harness)
{
MyCompoundEdit edit;
AbstractUndoableEdit e1, e2;
// Check #1.
edit = new MyCompoundEdit();
harness.check(edit.getLast() == null);
// Check #2.
edit.addEdit(e1 = new AbstractUndoableEdit());
harness.check(edit.getLast() == e1);
// Check #3.
edit.addEdit(e2 = new AbstractUndoableEdit());
harness.check(edit.getLast() == e2);
}