gateway.setPrefix(PREFIXES[i]);
    protected void setUp() throws Exception {        DialPattern[] dialPatterns = new DialPattern[PATTERN_COUNT];        for (int i = 0; i < dialPatterns.length; i++) {            DialPattern p = new DialPattern();            p.setPrefix("91");            p.setDigits(i + 2);            dialPatterns[i] = p;        }        m_patternsList = Arrays.asList(dialPatterns);        m_rule = new CustomDialingRule();        m_rule.setDialPatterns(m_patternsList);        for (int i = 0; i < GATEWAYS.length; i++) {            Gateway gateway = new Gateway();            gateway.setUniqueId();            gateway.setAddress(GATEWAYS[i]);            m_rule.addGateway(gateway);        }        m_rule.setEnabled(true);        m_rule.setCallPattern(new CallPattern("999", CallDigits.VARIABLE_DIGITS));    }