* Tests the draw() method.
*/
public void testDraw() {
setAddLabelExpectations();
compartment.addLabel((Label) mockLabel.proxy());
Dimension2D parentSize = new DoubleDimension(10, 4);
setRecalculateSizeWithOneLabelExpectations(parentSize);
Constraint[] rectParams = { eq(0.0), eq(0.0), eq(90.0), eq(22.0),
eq(Color.WHITE) };
mockParent.expects(once()).method("getAbsoluteX1").will(returnValue(0.0));
mockParent.expects(once()).method("getAbsoluteY1").will(returnValue(0.0));