@Test
public void testInstantiateBuilderAnalytic() {

    String symbol = "ESZ13";
    Instrument instr = TestHarness.makeInstrument(symbol);
    DateTime dt1 = new DateTime(2013, 12, 10, 12, 0, 0);
    TimeFrameImpl tf1 = new TimeFrameImpl(new Period(PeriodType.TICK, 1), dt1, null);
    SeriesSubscription sub1 = new SeriesSubscription("ESZ13", instr, "IO", new TimeFrameImpl[] { tf1 }, TradingWeekImpl.DEFAULT);
    
    BarBuilderNodeDescriptor desc = new BarBuilderNodeDescriptor();
    desc.setAnalyticClass(BarBuilder.class);
    desc.setConstructorArg(sub1);
    try {
        BarBuilder bb = (BarBuilder)desc.instantiateBuilderAnalytic();
        assertNotNull(bb);
    }catch(Exception e) {
        e.printStackTrace();
        fail();
    }
}