PromoteTempToFieldRefactoring ref= getRefactoringObject(selection, cu, newName, declareStatic, declareFinal, initializeIn, accessModifier);
PromoteTempToFieldRefactoring ref= new PromoteTempToFieldRefactoring(cu, selection.getOffset(), selection.getLength());
	private void enablementHelper(int startLine, int startColumn, int endLine, int endColumn,						  String newName,						  boolean declareStatic,						  boolean declareFinal,						  int initializeIn,						  int accessModifier,						  boolean expectedCanEnableSettingFinal,						  boolean expectedCanEnableSettingStatic,						  boolean expectedCanEnableInitInField,						  boolean expectedCanEnableInitInMethod,  						  boolean expectedCanEnableInitInConstructors) throws Exception{		ICompilationUnit cu= createCUfromEnablementTestFile(getPackageP());		ISourceRange selection= TextRangeUtil.getSelection(cu, startLine, startColumn, endLine, endColumn);        PromoteTempToFieldRefactoring ref= getRefactoringObject(selection, cu, newName, declareStatic, declareFinal, initializeIn, accessModifier);		RefactoringStatus result= ref.checkActivation(new NullProgressMonitor());		assertEquals("activation checking was supposed to pass", RefactoringStatus.OK, result.getSeverity());				assertEquals("incorrect in-constructor enablement", expectedCanEnableInitInConstructors, ref.canEnableSettingDeclareInConstructors());		assertEquals("incorrect in-field enablement", expectedCanEnableInitInField, ref.canEnableSettingDeclareInFieldDeclaration());		assertEquals("incorrect in-method enablement", expectedCanEnableInitInMethod, ref.canEnableSettingDeclareInMethod());		assertEquals("incorrect static enablement", expectedCanEnableSettingStatic, ref.canEnableSettingStatic());		assertEquals("incorrect final enablement", expectedCanEnableSettingFinal, ref.canEnableSettingFinal());	}