Pattern { @Override public String toString() { StringBuffer buffer = new StringBuffer(); buffer.append("("); for (Box b : getAmounts()) { buffer.append(b.getAmount()); buffer.append(","); } buffer.deleteCharAt(buffer.toString().length() - 1); buffer.append(")"); return buffer.toString(); } Pattern(Vector size, ArrayList<Box> boxes);  Pattern(Vector size, ArrayList<Box> boxes, ArrayList<PlacedBox> placedBoxes); ArrayList<PlacedBox> getPlacedBoxes(); void setPlacedBoxes(ArrayList<PlacedBox> placedBoxes); Vector getSize(); ArrayList<Box> getAmounts(); ArrayList<Box> getBoxes(); @Override Pattern clone(); @Override String toString(); boolean isPatternEmpty();  }
@Test public void testToString() { assertEquals("(6,2,5,0)", pattern.toString()); }