rule.getPermissions();
rule.getPermissionNames();
    public void testHostPatternProvider() throws Exception {        IMocksControl control = EasyMock.createNiceControl();        IDialingRule rule = control.createMock(IDialingRule.class);        rule.isInternal();        control.andReturn(true).times(2);        rule.getHostPatterns();        control.andReturn(new String[] {            "gander"        });        rule.getPatterns();        control.andReturn(new String[] {            "dot"        });        rule.getPermissions();        control.andReturn(Collections.EMPTY_LIST);        rule.getTransforms();        control.andReturn(new Transform[0]);        control.replay();        MappingRules mappingRules = new MappingRules();        mappingRules.begin();        mappingRules.generate(rule);        mappingRules.end();        Document document = mappingRules.getDocument();        String domDoc = XmlUnitHelper.asString(document);        assertXpathExists("/mappings/hostMatch[2]/hostPattern", domDoc);        assertXpathExists("/mappings/hostMatch[2]/userMatch/userPattern", domDoc);        control.verify();    }