@Test
public void testBadInstanciation() throws Exception {

    Style s = getStyle(PROPORTIONAL_POINT);
    PointSymbolizer ps = (PointSymbolizer) s.getRules().get(0).getCompositeSymbolizer().getChildren().get(0);
    try{
        CategorizedPoint cp = new CategorizedPoint(ps);
        fail();
    }catch (IllegalArgumentException iae){
        assertTrue(true);
    }
}