@Test
    public void testGeneratePolicyDescription_arrays() throws Exception {
        PolicyBean policy = new PolicyBean();
        PolicyDefinitionBean def = new PolicyDefinitionBean();
        def.setId("arrays"); //$NON-NLS-1$
        PolicyDefinitionTemplateBean template = new PolicyDefinitionTemplateBean();
        template.setTemplate("@{messages[0]} @{messages[1]}"); //$NON-NLS-1$
        def.getTemplates().add(template);
        policy.setDefinition(def);
        policy.setConfiguration("{ \"messages\" : [ \"Hello\", \"World\" ] }"); //$NON-NLS-1$
        PolicyTemplateUtil.generatePolicyDescription(policy);
        Assert.assertEquals("Hello World", 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