NLSMessages.getString("NLSrefactoring.pattern_empty"),
NLSMessages.getString("NLSRefactoring.pattern_empty"),
	public void testCheckInputWithSubstitutionPatterns() throws Exception {		ICompilationUnit cu= fHelper.getCu("/TestSetupProject/src1/p/WithStrings.java"); //$NON-NLS-1$		initDefaultValues(cu);		fSubstitutionPattern= ""; //$NON-NLS-1$		RefactoringStatus res= createCheckInputStatus(cu);		RefactoringStatusEntry[] results= res.getEntries();		assertEquals("substitution pattern must be given", 2, results.length); //$NON-NLS-1$		assertEquals("first is fatal", RefactoringStatus.ERROR, results[0].getSeverity()); //$NON-NLS-1$		assertEquals("right fatal message", //$NON-NLS-1$				NLSMessages.getString("NLSrefactoring.pattern_empty"), //$NON-NLS-1$				results[0].getMessage());		assertEquals("warning no key given", RefactoringStatus.WARNING, //$NON-NLS-1$				results[1].getSeverity());		assertEquals("right warning message", //$NON-NLS-1$				NLSMessages.getFormattedString("NLSrefactoring.pattern_does_not_contain", //$NON-NLS-1$						"${key}"), results[1].getMessage()); //$NON-NLS-1$		fSubstitutionPattern= "blabla${key}"; //$NON-NLS-1$		res= createCheckInputStatus(cu);		assertTrue("substitution pattern ok", res.isOK()); //$NON-NLS-1$		fSubstitutionPattern= "${key}blabla${key}"; //$NON-NLS-1$		res= createCheckInputStatus(cu);		assertFalse("substitution pattern ko", res.isOK()); //$NON-NLS-1$		results= res.getEntries();		assertEquals("one warning", 1, results.length); //$NON-NLS-1$		assertEquals("warning", RefactoringStatus.WARNING, results[0].getSeverity()); //$NON-NLS-1$		assertEquals("warning message", //$NON-NLS-1$				NLSMessages.getFormattedString("NLSrefactoring.Only_the_first_occurrence_of", //$NON-NLS-1$						"${key}"), results[0].getMessage()); //$NON-NLS-1$		// check for duplicate keys????		// check for keys already defined		// check for keys	}