List list = new ArrayList();
List<DialingRule> list = new ArrayList<DialingRule>();
    public void testAreaCodes() {        m_rule.setLongDistancePrefixOptional(true);        m_rule.setAreaCodes("  305 411,222");        m_rule.setDescription("testDescription");        List list = new ArrayList();        m_rule.appendToGenerationRules(list);        assertEquals(3, list.size());        for (Iterator i = list.iterator(); i.hasNext();) {            CustomDialingRule r = (CustomDialingRule) i.next();            assertEquals("testDescription", r.getDescription());            String[] patterns = r.getPatterns();            assertEquals(4, patterns.length);            assertTrue(patterns[0].endsWith("xxxx"));            assertTrue(patterns[1].endsWith("xxxx"));            assertTrue(patterns[2].endsWith("xxxx"));            assertTrue(patterns[3].endsWith("xxxx"));            List permissions = r.getPermissions();            assertEquals(1, permissions.size());            assertEquals(Permission.LONG_DISTANCE_DIALING, permissions.get(0));            Transform[] transforms = r.getTransforms();            assertEquals(1, transforms.length);            FullTransform transform = (FullTransform) transforms[0];            assertTrue(transform.getUser().endsWith("{vdigits}"));            assertEquals("longdistance.gateway.com", transform.getHost());        }    }        