Permission.INTERNATIONAL_DIALING.setEnabled(g,false); Permission.LONG_DISTANCE_DIALING.setEnabled(g,false); Permission.TOLL_FREE_DIALING.setEnabled(g,false);
    public void testAddUser() throws Exception {        Document document = DocumentFactory.getInstance().createDocument();        Element items = document.addElement("items");        User user = new User();        Group g = new Group();        Permission.LOCAL_DIALING.setEnabled(g, true);        user.addGroup(g);        user.setSettingModel(TestHelper.loadSettings("user-settings.xml"));        user.setUserName("goober");        Permissions permissions = new Permissions();        permissions.addUser(items, user, "sipx.sipfoundry.org");        org.w3c.dom.Document domDoc = XmlUnitHelper.getDomDoc(document);        System.out.println(XmlUnitHelper.asString(document));        assertXpathEvaluatesTo("sip:goober@sipx.sipfoundry.org", "/items/item/identity", domDoc);        assertXpathEvaluatesTo("LocalDialing", "/items/item/permission", domDoc);    }