@Test
public void testImpossibleInstanciation() throws Exception {

    Style s = getStyle(DASH_RECODE);
    LineSymbolizer ls = (LineSymbolizer) s.getRules().get(0).getCompositeSymbolizer().getChildren().get(0);
    try{
        CategorizedLine cl = new CategorizedLine(ls);
        fail();
    } catch (IllegalArgumentException uoe){
        assertTrue(true);
    }
}