aa.setExtension("100"); rules.add(new MappingRule.Operator(aa, new String[] {
rules.add(new MappingRule.Operator(aa, "100", new String[] {
    public void testInternalRules() throws Exception {        int extension = 3;        List rules = new ArrayList();        AutoAttendant aa = AutoAttendant.createOperator();        aa.setExtension("100");        rules.add(new MappingRule.Operator(aa, new String[] {            "operator", "0"        }));        rules.add(new MappingRule.Voicemail("101"));        rules.add(new MappingRule.VoicemailTransfer("2", extension));        rules.add(new MappingRule.VoicemailFallback(3));        MockControl controlPlan = MockControl.createStrictControl(DialPlanContext.class);        DialPlanContext plan = (DialPlanContext) controlPlan.getMock();        plan.getGenerationRules();        controlPlan.setReturnValue(rules);        plan.getAttendantRules();        controlPlan.setReturnValue(Collections.EMPTY_LIST);        controlPlan.replay();        ConfigGenerator generator = new ConfigGenerator();        generator.generate(plan);        String generatedXml = generator.getFileContent(ConfigFileType.MAPPING_RULES);        InputStream referenceXmlStream = MappingRulesTest.class                .getResourceAsStream("mappingrules.test.xml");        assertXMLEqual(new InputStreamReader(referenceXmlStream), new StringReader(generatedXml));        controlPlan.verify();    }