AutoAttendant aa = new AutoAttendant(); aa.initialize(); aa.setSettings(TestHelper.loadSettings("sipxvxml/autoattendant.xml"));
AutoAttendant aa = new AutoAttendant() { protected Setting loadSettings() { return TestHelper.loadSettings("sipxvxml/autoattendant.xml"); } };
    public void testActivateDefaultAttendant() throws Exception {        AutoAttendant aa = new AutoAttendant();        aa.initialize();        aa.setSettings(TestHelper.loadSettings("sipxvxml/autoattendant.xml"));        aa.setPrompt("prompt.wav");        aa.addMenuItem(DialPad.NUM_0, new AttendantMenuItem(AttendantMenuAction.OPERATOR));        aa.addMenuItem(DialPad.NUM_1, new AttendantMenuItem(AttendantMenuAction.DISCONNECT));        aa.setSettingValue("onfail/transfer", "1");        aa.setSettingValue("onfail/transfer-extension", "999");        StringWriter actualXml = new StringWriter();        m_vxml.generate(aa, actualXml);        assertVxmlEquals("expected-autoattendant.xml", actualXml.toString());    }