Bug 24442 ASTRewrite: Can't nest swaps
see TextBufferTest.testSwap2InSwap1
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java
}
	
	public void testInsert3() throws Exception {
		
		SimpleTextEdit e1= SimpleTextEdit.createReplace(0, 2, "011");
		SimpleTextEdit e2= SimpleTextEdit.createInsert(2, "xx");
		SimpleTextEdit e3= SimpleTextEdit.createReplace(2, 2, "2");
		fEditor.add(e1);
		fEditor.add(e2);
		fEditor.add(e3);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals(e1.getTextRange(), 0, 3);
		assertEquals(e2.getTextRange(), 3, 2);
		assertEquals(e3.getTextRange(), 5, 1);
		assertEquals("Buffer content", "011xx2456789", fBuffer.getContent());
		doUndoRedo(undo, "011xx2456789");
	}
	
	public void testInsert4() throws Exception {
		SimpleTextEdit e1= SimpleTextEdit.createInsert(0, "xx");
		fEditor.add(e1);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals("Buffer length", 12, fBuffer.getLength());
		assertEquals(e1.getTextRange(), 0, 2);
		assertEquals("Buffer content", "xx0123456789", fBuffer.getContent());
		doUndoRedo(undo, "xx0123456789");
	}