AbstractBarcodeBean implements BarcodeGenerator { public void setPattern(String v) { this.pattern = v; }  String getPattern(); void setPattern(String v); double getHumanReadableHeight(); double getBarHeight(); double getHeight(); void setBarHeight(double height); void setHeight(double height); double getModuleWidth(); void setModuleWidth(double width); abstract double getBarWidth(int width); boolean hasQuietZone(); void doQuietZone(boolean value); double getQuietZone(); double getVerticalQuietZone(); void setQuietZone(double width); void setVerticalQuietZone(double height); HumanReadablePlacement getMsgPosition(); void setMsgPosition(HumanReadablePlacement placement); double getFontSize(); void setFontSize(double size); String getFontName(); void setFontName(String name); @Override abstract void generateBarcode(CanvasProvider canvas, String msg); @Override BarcodeDimension calcDimensions(String msg); @Override void configure(Configuration cfg);  }
@Test public void testSetPattern() { System.out.println("setPattern"); String v = "___"; AbstractBarcodeBean instance = new AbstractBarcodeBeanImpl(); instance.setPattern(v); assertEquals(v, instance.getPattern()); }