POSTNETLogicHandler extends AbstractVariableHeightLogicHandler { @Override public void startBarcode(String msg, String formattedMsg) { super.startBarcode(msg, formattedMsg); y = getStartY(); } POSTNETLogicHandler(POSTNETBean bcBean, Canvas canvas); @Override void startBarcode(String msg, String formattedMsg); @Override void addBar(boolean black, int height);  }
@Test public void testStartBarcode() { System.out.println("startBarcode"); String expected = "<svg xmlns=\"http: instance.startBarcode("1234-5678-0", null); System.out.println(SVGCanvasProviderTest.getStringFromDoc(svg.getDOM())); assertEquals(expected, SVGCanvasProviderTest.getStringFromDoc(svg.getDOM())); }