@Test
public void testTransformToCategorize() throws Exception {

    LineSymbolizer ls = new LineSymbolizer();
    CategorizedLine cl = new CategorizedLine(ls);
    cl.put(25.0, new LineParameters(Color.decode("#dd6643"), .725, 10.0, "2 2 5"));
    PenStroke ps = (PenStroke) ls.getStroke();
    assertTrue(ps.getWidth() instanceof Categorize);
    assertTrue(ps.getDashArray() instanceof Categorize);
    assertTrue(((SolidFill)ps.getFill()).getColor() instanceof Categorize);
    assertTrue(((SolidFill)ps.getFill()).getOpacity() instanceof Categorize);
}