/**
* Test equality.
*/
public void testEquals() {
Border border1 = new Border(new Extent(5, Extent.PX), Color.BLUE, Border.STYLE_OUTSET);
Border border2 = new Border(new Extent(5, Extent.PX), Color.BLUE, Border.STYLE_OUTSET);
Border border3 = new Border(new Extent(5, Extent.PX), Color.GREEN, Border.STYLE_OUTSET);
Border border4 = new Border(new Extent(5, Extent.PX), Color.BLUE, Border.STYLE_INSET);
Border border5 = new Border(new Extent(4, Extent.PX), Color.BLUE, Border.STYLE_OUTSET);
Border border6 = new Border(new Extent(5, Extent.PX), null, Border.STYLE_OUTSET);
Border border7 = new Border(null, Color.BLUE, Border.STYLE_INSET);
assertTrue(border1.equals(border1));
assertTrue(border1.equals(border2));
assertFalse(border1.equals(border3));
assertFalse(border1.equals(border4));
assertFalse(border1.equals(border5));