@Test
public void testTransformToCategorize() throws Exception {

    AreaSymbolizer as = new AreaSymbolizer();
    CategorizedArea ca = new CategorizedArea(as);
    ca.put(76000.0, new AreaParameters(Color.decode("#ababab"),1.2,12.0,"11 2 1",Color.decode("#bcbcbc"),1.5));
    SolidFill sfi = (SolidFill) as.getFill();
    PenStroke ps = (PenStroke) as.getStroke();
    SolidFill sfp = (SolidFill) ps.getFill();
    assertTrue(sfi.getColor() instanceof Categorize);
    assertTrue(sfi.getOpacity() instanceof Categorize);
    assertTrue(sfp.getColor() instanceof Categorize);
    assertTrue(sfp.getOpacity() instanceof Categorize);
    assertTrue(ps.getDashArray() instanceof Categorize);
    assertTrue(ps.getWidth() instanceof Categorize);
}