JavaPreferencesSettings.getCodeGenerationSettings());
JavaPreferencesSettings.getCodeGenerationSettings(CUs[0].getJavaProject()));
	private void doMultiUnitTest(ICompilationUnit[] CUs, String testPath, String[] outputFileBaseNames, String factoryClassName) throws Exception, JavaModelException, IOException {		ISourceRange selection= findSelectionInSource(CUs[0].getSource());		IntroduceFactoryRefactoring	ref= IntroduceFactoryRefactoring.create(CUs[0], selection.getOffset(), selection.getLength(), 												   JavaPreferencesSettings.getCodeGenerationSettings());		RefactoringStatus activationResult= ref.checkInitialConditions(new NullProgressMonitor());		assertTrue("activation was supposed to be successful", activationResult.isOK());																		if (factoryClassName != null)			ref.setFactoryClass(factoryClassName);		RefactoringStatus	checkInputResult= ref.checkFinalConditions(new NullProgressMonitor());		assertTrue("precondition was supposed to pass but was " + checkInputResult.toString(), checkInputResult.isOK());		performChange(ref, false);		String	testName= getName();		for (int i = 0; i < CUs.length; i++) {			int optIdx= testName.indexOf("_");			String testOptions= (optIdx >= 0) ? testName.substring(optIdx) : "";			String outFileName= testPath + outputFileBaseNames[i] + testOptions + "_out.java";			String xformedSrc= CUs[i].getSource();			String expectedSrc= getFileContents(outFileName);			assertEqualLines(getName() + ": ", expectedSrc, xformedSrc);		}	}