BarcodeDimension { @Override public String toString() { return new StringBuilder(50).append("[width=") .append(getWidth()) .append("(") .append(getWidthPlusQuiet()) .append("),height=") .append(getHeight()) .append("(") .append(getHeightPlusQuiet()) .append(")]").toString(); } BarcodeDimension(double w, double h);  BarcodeDimension(double w, double h,
            double wpq, double hpq,
            double xoffset, double yoffset); double getHeight(); double getHeight(Orientation orientation); double getHeightPlusQuiet(); double getHeightPlusQuiet(Orientation orientation); double getWidth(); double getWidth(Orientation orientation); double getWidthPlusQuiet(); double getWidthPlusQuiet(Orientation orientation); double getXOffset(); double getYOffset(); Rectangle2D getBoundingRect(); Rectangle2D getContentRect(); @Override String toString();  }
@Test public void testToString() { System.out.println("toString"); BarcodeDimension instance = new BarcodeDimension(100, 200, 110, 204, 5, 2); String expResult = "[width=100.0(110.0),height=200.0(204.0)]"; String result = instance.toString(); assertEquals(expResult, result); }