PromoteTempToFieldRefactoring ref= getRefactoringObject(selection, cu, newName, declareStatic, declareFinal, initializeIn, accessModifier);
PromoteTempToFieldRefactoring ref= new PromoteTempToFieldRefactoring(cu, selection.getOffset(), selection.getLength());
	private void failHelper(int startLine, int startColumn, int endLine, int endColumn, 						  String newName,						  boolean declareStatic,						  boolean declareFinal,						  int initializeIn,						  int accessModifier,						  int expectedSeverity) throws Exception{		ICompilationUnit cu= createCUfromTestFile(getPackageP(), false, true);						  			ISourceRange selection= TextRangeUtil.getSelection(cu, startLine, startColumn, endLine, endColumn);        PromoteTempToFieldRefactoring ref= getRefactoringObject(selection, cu, newName, declareStatic, declareFinal, initializeIn, accessModifier);				RefactoringStatus result= performRefactoring(ref);		assertNotNull("precondition was supposed to fail", result);		assertEquals("incorrect severity:", expectedSeverity, result.getSeverity());	}