@Test
public void testEquality() throws Exception {

    LineParameters lp = new LineParameters(Color.BLUE,.4,2.0,"2 2");
    LineParameters lp2 = new LineParameters(Color.BLUE,.4,2.0,"2 2");
    assertTrue(lp.equals(lp2));
    lp2 = new LineParameters(Color.BLUE,.4,2.0,"2 1 2");
    assertFalse(lp.equals(lp2));
    lp2 = new LineParameters(Color.BLUE,.4,3.0,"2 2");
    assertFalse(lp.equals(lp2));
    lp2 = new LineParameters(Color.BLUE,.5,2.0,"2 2");
    assertFalse(lp.equals(lp2));
    lp2 = new LineParameters(Color.YELLOW,.4,2.0,"2 2");
    assertFalse(lp.equals(lp2));
}