XMLWorker implements XMLParserListener { public void init() { Pipeline<?> p = rootpPipe; try { while ((p = p.init(getLocalWC()))!= null); } catch (PipelineException e) { throw new RuntimeWorkerException(e); } } XMLWorker(final Pipeline<?> pipeline, final boolean parseHtml); void init(); void startElement(final String tag, final Map<String, String> attr, final String ns); void endElement(final String tag, final String ns); void text(String text); void unknownText(final String text); void comment(final String comment); void close();  }
@Test public void verifyPipelineInitCalled() { worker.init(); Assert.assertTrue(called); }