Thread.currentThread().setContextClassLoader( cl );
InputStream inputXLS = new BufferedInputStream(getClass().getResourceAsStream( "departmentData.xls"));
XLSReader mainReader = ReaderBuilder.buildFromXML( ResourceFactory.newClassPathResource( "departments.xml", getClass() ).getInputStream() );
Transformer transformer = PipelineFactory.newJxlsTransformer(mainReader, "[ 'departments' : new java.util.ArrayList(), 'company' : new org.drools.runtime.pipeline.impl.Company() ]");
Callable callable = new CallableImpl();
callable.setReceiver( transformer );
transformer.setReceiver( callable );
BasePipelineContext context = new BasePipelineContext( Thread.currentThread().getContextClassLoader() );
Map<String, Object> beans = ( Map<String, Object> ) callable.call( inputXLS, context );
assertEquals( Company.class.getName(), beans.get( "company" ).getClass().getName());