Bug 24442 ASTRewrite: Can't nest swaps
see TextBufferTest.testSwap2InSwap1
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java
doUndoRedo(undo, "012x456789");
	}
	
	public void testDeleteWithChildren() throws Exception {
		SimpleTextEdit e1= SimpleTextEdit.createDelete(2, 6);
		MultiTextEdit e2= new MultiTextEdit();
		e1.add(e2);
		SimpleTextEdit e3= SimpleTextEdit.createReplace(3,1,"xx");
		SimpleTextEdit e4= SimpleTextEdit.createReplace(5,1,"yy");
		e2.add(e3);
		e2.add(e4);
		fEditor.add(e1);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals("Buffer content", "0189", fBuffer.getContent());
		assertTrue(e2.getTextRange().isDeleted());
		assertTrue(e3.getTextRange().isDeleted());
		assertTrue(e4.getTextRange().isDeleted());
		doUndoRedo(undo, "0189");
	}
	
	public void testMove1() throws Exception {
		MoveSourceEdit s1= new MoveSourceEdit(2, 2);
		MoveTargetEdit t1= new MoveTargetEdit(5, s1);
		fEditor.add(s1);
		fEditor.add(t1);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals("Buffer content", "0142356789", fBuffer.getContent());
		assertEquals(s1.getTextRange(), 2, 0);