NLSHolder nlsHolder = NLSHolder.create(cu); NLSHint hint = new NLSHint(nlsHolder.getSubstitutions(), cu);
NLSHolder nlsHolder = NLSHolder.create(cu, new NLSInfo(cu)); NLSHint hint = new NLSHint(nlsHolder.getSubstitutions(), cu, new NLSInfo(cu));
    public void testPackageHintWithDifferentPackages() throws Exception {        IPackageFragment pack = fSourceFolder.createPackageFragment("test", false, null);        String klazz =             "package test;\n" +            "import test.foo.TestMessages;\n" +            TEST_KLAZZ;	        ICompilationUnit cu= pack.createCompilationUnit("Test.java", klazz, false, null);                                IPackageFragment fooPackage = fSourceFolder.createPackageFragment("test.foo", false, null);        klazz = "package test.foo;\n" + ACCESSOR_KLAZZ;        fooPackage.createCompilationUnit("TestMessages.java", klazz, false, null);                        NLSHolder nlsHolder = NLSHolder.create(cu);        NLSHint hint = new NLSHint(nlsHolder.getSubstitutions(), cu);        assertEquals(fooPackage, hint.getMessageClassPackage());    }    