public void testParametersGetSet() { Random r = new Random(); int x = (int)(r.nextFloat()*100); int y = (int)(r.nextFloat()*100); int z = (int)(r.nextFloat()*100); Annotation actual = new Annotation(0,0,0); actual.setLocation(x,y,z); actual.setColor(Color.RED); actual.setFont(new Font("Impact",Font.BOLD,24)); actual.setText("Hello World"); actual.setAlignment(Annotation.Alignment.NORTH); Assert.assertEquals(new Point3(x,y,z),actual.getLocation()); Assert.assertEquals(Color.RED,actual.getColor()); Assert.assertEquals(new Font("Impact",Font.BOLD,24),actual.getFont()); Assert.assertEquals("Hello World", actual.getText()); Assert.assertEquals(Annotation.Alignment.NORTH,actual.getAlignment()); }