assertTrue(rule.getPermissions().isEmpty());
assertTrue(rule.getPermissionNames().isEmpty());
    public void testAsDialingRulesListFull() {        EmergencyRouting routing = new EmergencyRouting();        routing.setDefaultGateway(m_defaultGateway);        routing.setExternalNumber(DEFAULT_EXTENSION);        for (int i = 0; i < TEST_DATA.length; i++) {            Gateway gateway = new Gateway();            gateway.setAddress(TEST_DATA[i][1]);            RoutingException re = new RoutingException("abc, ddd", TEST_DATA[i][0], gateway);            routing.addException(re);        }        List rules = routing.asDialingRulesList();        assertEquals(TEST_DATA.length + 1, rules.size());        for (int i = 1; i < TEST_DATA.length; i++) {            IDialingRule rule = (IDialingRule) rules.get(i + 1);            List gateways = rule.getGateways();            assertEquals(1, gateways.size());            Gateway g = (Gateway) gateways.get(0);            assertEquals(TEST_DATA[i][1], g.getAddress());            assertTrue(rule.getPermissions().isEmpty());            assertEquals(1, rule.getPatterns().length);            assertEquals(TEST_DATA[i][0], rule.getPatterns()[0]);        }    }