@Test
    public void testGeneratePolicyDescription_blacklist() throws Exception {
        PolicyBean policy = new PolicyBean();
        PolicyDefinitionBean def = new PolicyDefinitionBean();
        def.setId("blacklist"); //$NON-NLS-1$
        PolicyDefinitionTemplateBean template = new PolicyDefinitionTemplateBean();
        template.setTemplate("Requests that originate from the set of @{ipList.size()} configured IP address(es) will be denied access to the managed API."); //$NON-NLS-1$
        def.getTemplates().add(template);
        policy.setDefinition(def);
        policy.setConfiguration("{ \"ipList\" : [ \"127.0.0.1\", \"192.168.1.10\" ] }"); //$NON-NLS-1$
        PolicyTemplateUtil.generatePolicyDescription(policy);
        Assert.assertEquals("Requests that originate from the set of 2 configured IP address(es) will be denied access to the managed API.", policy.getDescription()); //$NON-NLS-1$
    }
Test method for {@link io.apiman.manager.api.core.util.PolicyTemplateUtil#generatePolicyDescription(io.apiman.manager.api.beans.policies.PolicyBean)}.
@throws Exception any exception
manager/api/core/src/test/java/io/apiman/manager/api/core/PolicyTemplateUtilTest.java