NLSSubstitution.setPrefix("key.");
    public void testFromNotTranslatedToTranslated() throws Exception {                String klazz =            "public class Test {\n" +            "	private String str=\"whatever\"; //$NON-NLS-1$\n" +            "}\n";                 IPackageFragment pack = fSourceFolder.createPackageFragment("test", false, null);        ICompilationUnit cu= pack.createCompilationUnit("Test.java", klazz, false, null);                CompilationUnit astRoot= createAST(cu);        NLSSubstitution[] nlsSubstitutions = getSubstitutions(cu, astRoot);        NLSSubstitution.setPrefix("key.");        nlsSubstitutions[0].setState(NLSSubstitution.EXTERNALIZED);        nlsSubstitutions[0].generateKey(nlsSubstitutions);                String defaultSubst= NLSRefactoring.DEFAULT_SUBST_PATTERN;        TextChange change = (TextChange) NLSSourceModifier.create(cu, nlsSubstitutions, defaultSubst, pack, "Accessor", false);                Document doc = new Document(klazz);        change.getEdit().apply(doc);                assertEquals(                "public class Test {\n" +                "	private String str=Accessor.getString(\"key.0\"); //$NON-NLS-1$\n" +            	"}\n",             	doc.get());    }