ref.setMethodsToDelete(getMethods(ref.getMatchingElements()));
ref.setMethodsToDelete(getMethods(ref.getMatchingElements(new NullProgressMonitor())));
	public void test4() throws Exception{		ICompilationUnit cuA= createCUfromTestFile(getPackageP(), "A");		ICompilationUnit cuB= createCUfromTestFile(getPackageP(), "B");				try{			String[] methodNames= new String[]{"m"};			String[][] signatures= new String[][]{new String[]{"QList;"}};						IType type= getType(cuB, "B");			IMethod[] methods= getMethods(type, methodNames, signatures);			PullUpRefactoring ref= createRefactoring(methods);			ref.setMethodsToDelete(getMethods(ref.getMatchingElements()));					RefactoringStatus result= performRefactoring(ref);			assertEquals("precondition was supposed to pass", null, result);						assertEquals("incorrect modification in A", getFileContents(getOutputTestFileName("A")), cuA.getSource());					assertEquals("incorrect modification in B", getFileContents(getOutputTestFileName("B")), cuB.getSource());				} finally{			cuA.delete(false, null);			cuB.delete(false, null);		}						}