/**
* A test for the equals() method.
*/
public void testEquals() {
GrayPaintScale g1 = new GrayPaintScale();
GrayPaintScale g2 = new GrayPaintScale();
assertTrue(g1.equals(g2));
assertTrue(g2.equals(g1));
g1 = new GrayPaintScale(0.0, 1.0);
g2 = new GrayPaintScale(0.0, 1.0);
assertTrue(g1.equals(g2));
g1 = new GrayPaintScale(0.1, 1.0);
assertFalse(g1.equals(g2));
g2 = new GrayPaintScale(0.1, 1.0);
assertTrue(g1.equals(g2));
g1 = new GrayPaintScale(0.1, 0.9);
assertFalse(g1.equals(g2));
g2 = new GrayPaintScale(0.1, 0.9);
assertTrue(g1.equals(g2));
g1 = new GrayPaintScale(0.1, 0.9, 128);
assertFalse(g1.equals(g2));
g2 = new GrayPaintScale(0.1, 0.9, 128);
assertTrue(g1.equals(g2));
}