public void testCloning() {
        CategoryMarker m1 = new CategoryMarker("A", new GradientPaint(1.0f, 
                2.0f, Color.white, 3.0f, 4.0f, Color.yellow), 
                new BasicStroke(1.1f));
        CategoryMarker m2 = null;
        try {
            m2 = (CategoryMarker) m1.clone();
        }
        catch (CloneNotSupportedException e) {
            e.printStackTrace();
        }
        assertTrue(m1 != m2);
        assertTrue(m1.getClass() == m2.getClass());
        assertTrue(m1.equals(m2));