b2.setPaint(new GradientPaint(1.0f, 2.0f, Color.red, 3.0f, 4.0f,
Color.yellow));
assertTrue(b1.equals(b2));
// gradient paint transformer
b1.setGradientPaintTransformer(new StandardGradientPaintTransformer(
GradientPaintTransformType.CENTER_VERTICAL));
assertFalse(b1.equals(b2));
b2.setGradientPaintTransformer(new StandardGradientPaintTransformer(
GradientPaintTransformType.CENTER_VERTICAL));
assertTrue(b1.equals(b2));
// check an inherited attribute
b1.setVisible(false);