@Test
public void testEquality() throws Exception {

    PointParameters pp = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 1.0, 4.0, "SQUARE");
    PointParameters pp2 = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 1.0, 4.0, "SQUARE");
    assertTrue(pp.equals(pp2));
    pp = new PointParameters(Color.CYAN, .25, 42.0, "2", Color.YELLOW, .46, 1.0, 4.0, "SQUARE");
    pp2 = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 1.0, 4.0, "SQUARE");
    assertFalse(pp.equals(pp2));
    pp = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .8, 1.0, 4.0, "SQUARE");
    pp2 = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 1.0, 4.0, "SQUARE");
    assertFalse(pp.equals(pp2));
    pp = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, null, 4.0, "SQUARE");
    pp2 = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 3.0, 4.0, "SQUARE");
    assertFalse(pp.equals(pp2));
    pp = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, null, 5.0, "SQUARE");
    pp2 = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 5.0, 5.0, "SQUARE");
    assertTrue(pp.equals(pp2));
    pp = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 1.0, null, "SQUARE");
    pp2 = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 1.0, 3.0, "SQUARE");
    assertFalse(pp.equals(pp2));
    pp = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 1.0, null, "SQUARE");
    pp2 = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 1.0, 1.0, "SQUARE");
    assertTrue(pp.equals(pp2));
    pp = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, null, null, "SQUARE");
    pp2 = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 3.0, 3.0, "SQUARE");
    assertTrue(pp.equals(pp2));
    pp = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 1.0, 4.0, null);
    pp2 = new PointParameters(Color.BLUE, .25, 42.0, "2", Color.YELLOW, .46, 1.0, 4.0, "CIRCLE");
    assertTrue(pp.equals(pp2));
}