@Test
public void testPricing() throws Exception
{
final ExternalSpreadsheetCompiler converter = new ExternalSpreadsheetCompiler();
final List<DataListener> listeners = new ArrayList<DataListener>();
TemplateDataListener l1 = new TemplateDataListener(10, 3, "/templates/test_pricing1.drl");
listeners.add(l1);
TemplateDataListener l2 = new TemplateDataListener(30, 3, "/templates/test_pricing2.drl");
listeners.add(l2);
converter.compile("/data/ExamplePolicyPricing.xls", InputType.XLS, listeners);
//COMPILE
final PackageBuilder builder = new PackageBuilder();
builder.addPackageFromDrl( new StringReader( l1.renderDRL() ) );
builder.addPackageFromDrl( new StringReader( l2.renderDRL() ) );
final Package pkg = builder.getPackage();
assertNotNull( pkg );
DroolsError[] errors = builder.getErrors().getErrors();
// for (int i = 0; i < errors.length; i++) {