}
@Test
public void testAttributeBasedRecode() {
// this is a case showing that recode/categorize is not always the most compact solution...
Function width = ff.function("recode", ff.property("type"), ff.literal("local-road"),
ff.literal(2), ff.literal("secondary"), ff.literal(3), ff.literal("highway"),
ff.literal(6));
Function color = ff.function("recode", ff.property("type"), ff.literal("local-road"),
ff.literal("#009933"), ff.literal("secondary"), ff.literal("#0055CC2"),
ff.literal("highway"), ff.literal("#FF0000"));
Style style = new LineSymbolizerBuilder().stroke().color(color).width(width).buildStyle();
// print(style);