LocalizableLinkageCreator llc = new LocalizableLinkageCreator();
TreeLogger logger = new FailErrorLogger();
TypeOracle oracle = TypeOracleTestingUtils.buildStandardTypeOracleWith(
logger, LOCALIZABLE, TEST, TEST_IW);
JClassType test = oracle.findType("foo.Test");
GwtLocaleFactory factory = new GwtLocaleFactoryImpl();
GwtLocale locale = factory.fromString("he");
String implClass = llc.linkWithImplClass(logger, test, locale);
assertEquals("foo.Test_iw", implClass);
oracle = TypeOracleTestingUtils.buildStandardTypeOracleWith(
logger, LOCALIZABLE, TEST, TEST_HE);
test = oracle.findType("foo.Test");
locale = factory.fromString("iw");
implClass = llc.linkWithImplClass(logger, test, locale);
assertEquals("foo.Test_he", implClass);
}