public void testPieURL() throws Exception
{
DebugExpressionRuntime runtime = new DebugExpressionRuntime();
FormulaPieURLGenerator gen = new FormulaPieURLGenerator(runtime, "=[chart::item]");
DefaultPieDataset dataSet = new DefaultPieDataset();
dataSet.setValue("Key-1", 5);
dataSet.setValue("Key-2", 7);
dataSet.setValue("Key-3", 10);
assertEquals ("5.0", gen.generateURL(dataSet, "Key-1", 0));
assertEquals ("7.0", gen.generateURL(dataSet, "Key-2", 1));
assertEquals("10.0", gen.generateURL(dataSet, "Key-3", 2));
}