RulesCurator.DEFAULT_RULES_FILE);
Rules rules = new Rules(Util.readFile(is));
when(rulesCuratorMock.getUpdated()).thenReturn(new Date());
when(rulesCuratorMock.getRules()).thenReturn(rules);
when(eventSinkProvider.get()).thenReturn(eventSink);
provider = new JsRunnerProvider(rulesCuratorMock);
Locale locale = new Locale("en_US");
i18n = I18nFactory.getI18n(getClass(), "org.candlepin.i18n.Messages", locale,
I18nFactory.FALLBACK);
compliance = new ComplianceRules(provider.get(),
entCurator, new StatusReasonMessageGenerator(i18n), eventSinkProvider,