assertEquals(0, list.size());
assertEquals(2, list.size()); assertEquals("1305xxxx", list.get(0).calculatePattern()); assertEquals("305xxxx", list.get(1).calculatePattern());
    public void testCalculateDialPatternsPstnPrefixRequired() {        m_rule.setLongDistancePrefixOptional(true);        m_rule.setPstnPrefixOptional(false);        List<DialPattern> list = m_rule.calculateDialPatterns("305");        assertEquals(2, list.size());        assertEquals("91305xxxx", list.get(0).calculatePattern());        assertEquals("9305xxxx", list.get(1).calculatePattern());        m_rule.setPstnPrefix(null);        list = m_rule.calculateDialPatterns("305");        assertEquals(0, list.size());    }