Bug 7985 extract method: cannot extract (entire) try/catch block
public class A{ String f(int y, int z, boolean ff){ /*[*/try{ } catch (Exception e){ }/*]*/ return null; } void f(){} } cannot extract the selected fragment
org.eclipse.jdt.ui.tests/ui/org/eclipse/jdt/ui/tests/core/TextBufferTest.java
assertEquals("Buffer content", "xx0123456789", fBuffer.getContent());
		doUndo(undo);
		assert(e1.getTextRange(), 0, 0);
	}
	
	public void testInsert5() throws Exception {
		SimpleTextEdit e1= SimpleTextEdit.createInsert(10, "xx");
		fEditor.add(e1);
		assertTrue(fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assertEquals("Buffer length", 12, fBuffer.getLength());
		assert(e1.getTextRange(), 10, 2);
		assertEquals("Buffer content", "0123456789xx", fBuffer.getContent());
		doUndo(undo);
		assert(e1.getTextRange(), 10, 0);
	}
	
	public void testDelete1() throws Exception {
		SimpleTextEdit e1= SimpleTextEdit.createDelete(3, 1);
		fEditor.add(e1);
		assertTrue("Can perform edits", fEditor.canPerformEdits());
		UndoMemento undo= fEditor.performEdits(null);
		assert(e1.getTextRange(), 3, 0);
		assertEquals("Buffer content", "012456789", fBuffer.getContent());
		doUndo(undo);
		assert(e1.getTextRange(), 3, 1);
	}
	
	public void testDelete2() throws Exception {
		SimpleTextEdit e1= SimpleTextEdit.createDelete(4, 1);