/**
* Some more cloning checks.
*/
public void testCloning2() {
AxisSpace da1 = new AxisSpace();
AxisSpace ra1 = new AxisSpace();
CategoryPlot p1 = new CategoryPlot();
p1.setFixedDomainAxisSpace(da1);
p1.setFixedRangeAxisSpace(ra1);
CategoryPlot p2 = null;
try {
p2 = (CategoryPlot) p1.clone();
}
catch (CloneNotSupportedException e) {
e.printStackTrace();
}
assertTrue(p1 != p2);
assertTrue(p1.getClass() == p2.getClass());
assertTrue(p1.equals(p2));
da1.setBottom(99.0);
assertFalse(p1.equals(p2));
p2.getFixedDomainAxisSpace().setBottom(99.0);
assertTrue(p1.equals(p2));
ra1.setBottom(11.0);
assertFalse(p1.equals(p2));
p2.getFixedRangeAxisSpace().setBottom(11.0);
assertTrue(p1.equals(p2));
}