b.add(wkt.read("LINESTRING(0 0, 1 1)"));
b.add("one");
features2.add(b.buildFeature("fid.1"));
WMSMapContent context = new WMSMapContent();
context.addLayer(new FeatureLayer(DataUtilities.source(features1), null));
context.addLayer(new FeatureLayer(DataUtilities.source(features2), null));
context.setMapWidth(500);
context.setMapHeight(500);
context.getViewport().setBounds(new ReferencedEnvelope(-180, 180, -90, 90, DefaultGeographicCRS.WGS84));
ByteArrayOutputStream out = new ByteArrayOutputStream();