DialPlanContext empty = planCtrl.createMock(DialPlanContext.class); empty.getGenerationRules();
DialPlanContext dialPlanContext = planCtrl.createMock(DialPlanContext.class); DialingRuleProvider dialingRuleProvider = planCtrl.createMock(DialingRuleProvider.class); dialingRuleProvider.getDialingRules();
    public void testGetFileContent() throws Exception {        IMocksControl planCtrl = EasyMock.createStrictControl();        DialPlanContext empty = planCtrl.createMock(DialPlanContext.class);        empty.getGenerationRules();        planCtrl.andReturn(Collections.EMPTY_LIST);        empty.getAttendantRules();        planCtrl.andReturn(Collections.EMPTY_LIST);        planCtrl.replay();        EmergencyRouting er = new EmergencyRouting();        ConfigGenerator generator = new ConfigGenerator();        generator.generate(empty, er);        AuthRules authRules = new AuthRules();        authRules.begin();        checkConfigFileGeneration(generator, authRules, ConfigFileType.AUTH_RULES);        MappingRules mappingRules = new MappingRules();        mappingRules.begin();        checkConfigFileGeneration(generator, mappingRules, ConfigFileType.MAPPING_RULES);        FallbackRules fallbackRules = new FallbackRules();        fallbackRules.begin();        checkConfigFileGeneration(generator, fallbackRules, ConfigFileType.FALLBACK_RULES);        planCtrl.verify();    }