module.addRule(browserShimGenerateRule);
RuleGenerateWith localeMessageGenerateRule = new RuleGenerateWith(LocaleMessageGenerator.class);
localeMessageGenerateRule.getRootCondition()
.getConditions().add(new ConditionWhenTypeEndsWith("Messages"));
module.addRule(localeMessageGenerateRule);
LibraryGroup libraryGroup = LibraryGroupTest.buildVariedPropertyGeneratorLibraryGroup(
Sets.newHashSet("com.google.ChromeMessages"),
Sets.newHashSet("com.google.WindowShim"));
PrecompileTaskOptions options = new CompilerOptionsImpl();
options.setFinalProperties(module.getProperties());
compilerContext = new CompilerContext.Builder().libraryGroup(libraryGroup)